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.

Running Scripts on Web

Featured Replies

Hi All,

Maybe one of you can help me.

I am trying to run a script on a web page that facilitates online registration for exams.

Within FM, my script checks to see how many people are registered for a given date and time, and if there are more than 4 people for a given date and time, an error message is generated telling the user to select another date.

However, I tried to use this script on the web, and nothing happens. If an error is being generated, how is the web user supposed to recieve the news?

Here is the tag I'm using online:

<input type="hidden" name="-script" value="CheckClassFull">

Here is the link to my page as well:

https://filemaker.ccsu.edu/data/TLC/default.htm

Just click on the "New Record" link to get to the page.

I am using FM version 5.5.

Thanks,

Cristy

  • Newbies

Hi,

well.. normaly I trigger scripts like this

<a href="FMPro.. &-Script=myScript&.."> (just an example !!!) works great.. you just have to look for writeing the exact name of the script.. that's all..

hope this helps you

b.

Hi, your link is not working.

ScriptMaker scripts can be "triggered" from a form action or a link action.

However there are issues involved because ScriptMaker is single-threaded. Should it receive two near-simultaneous requests, the second requested event will fail to perform, yet your client will be taken to the success.htm. In and of itself CDML has no way of knowing that a ScriptMaker event failed to run.

It is possible to run ScriptMaker on the web, I know, I do that at my site. Feel free to visit when you have the time.

In this instance you don't need a script at all to get the functionality. All you need to do is count the registrations (using a calculation field in the database) and use this value in a CDML [FMP-If] statement on yout format file do display the appropriate response.

No scripts needed.

Create an account or sign in to comment

Important Information

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

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.