Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

PHP button to trigger FM script

Featured Replies

Hi,

There are several cases when FM script must be triggered from separate button on page layout or to put in action field script trigger.

'<?php echo ("window.location="script.php"") ?>' name="another page" value="Script">

(code isn't show correctly due to coding symbols in it)

Separate file "script.php" are involved to keep php code for script:

/*** <?php

$rec = $record->getField('Npk');

$script =& $fm->newPerformScriptCommand($layoutName,'List',$rec);

$result = $script->execute(); ?> ***/

Separate file count rise if number of scripts rise.

Probably somebody can give better solution -one file for all scripts or something.

Sorry is there actually a question here?

  • Author

Hmmm... forum is about FM PHP isn't it?

And question is - how to create a button to trigger FM script. Separate button on page..

  • Author

For more information and sample download I have wrote some words here:

http://www.hierarchy.lv/?p=192

  • 3 months later...

Peter:

I need you to place this script step on our site on a form. I will pay you $20 to do if interested.

maui

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.