Skip 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.

EventScript Help

Featured Replies

Ok, i'm using event script to react to the value of a radio button field. The field is empty on a new record and then i am using the value list (approve; deny). I want the plugin to fire off an approved script if its contents are approved and another if its denied. I have it reacting to the field by using a validation calculation as follows (I only have the approved in there so far);)

If ( watched_field = "Approved" ;

S4HU_EventScript( Get(FileName) ; "HelloWorld" ; "" ) ; "" )

Its working and triggering "HelloWorld" but after is says that the field is only allowed to include validated content. I can't figure out how to get rid of that message.

The documentation is not great with with this plugin, which is unfortunate, as its a very useful script. Any help is much appreciated.

--

Dave

Case(

watched_field = "Approved" ;watched_field & S4HU_EventScript( Get(FileName) ; "HelloWorld" ; "" );

watched_field = "Denied" ;watched_field & S4HU_EventScript( Get(FileName) ; "YourSecondScript" ; "" );

""

)

  • Author

ok, that satisified how to trigger the script either way, but its still coming up with '"watched-field" is defined to contain only specific values. Allow this value? (revert/yes/no_)'

Thanks!

.... by using a validation calculation ...

You haven't to enter that calculation there, but in the AutoEnter/replace option of the field

  • Author

Ok, thanks. That was my issue. Here's the next problem!

I am trying to get this to work with an XSLT solution. I have a layout on the web that has the radio buttons for approve and deny. When I select "approve" the contents of the field change to "approve?" same with "deny". it changes to "deny". I really need to find a way to trigger a script from an xslt solution. This seems like the most logical way. Perhaps I'm barking up the wrong tree?

I know nothing about web publishing, but it seems to me easier to have two buttons, "Approve" and "Deny", that would trigger a script each. The script can also set the field to the appropriate value - and no plugin is required.

When I select "approve" the contents of the field change to "approve?" same with "deny". it changes to "deny".

I assume that "deny" changes to "deny?" .

The "?" appears only if EventSript fails to launch the script ( so that it gives the "?" result)

So double check the calc, expecially the Name of the script to fire.

  • Author

Well, the script works fine and triggers locally without issue. Its only through the web that it puts the ? after the result. I just don't think that way is going to work.....

GRRR!

I am trying to get this to work with an XSLT solution

Sorry for replying a bit late Chevell. Actually EventScript like almost every known plug-ins isn't working through the web (IWP or CWP).

EventScript is tight to the built-in calculation engine on the client-side and it requires a FileMaker client software to work.

Currently, this plug-in is working on Pro, Developer, Pro Advanced, runtime and kiosk distributions. But not over the web!! To be triggered through a Web shared database, the plug-in and the target script should be handle by the FileMaker server Advanced and I'm not sure the server product is ready for this!?

A workaround would be to use the -script parameter available under XSL http request. Look at the custom web publishing PDF file for more details.

HTH.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.