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.

Status(CurrentFieldName)?????

Featured Replies

  • Newbies

Essentially, I need to find out what field the user has selected.

I am setting up a sign-up sheet on-line which would allow a user to enter their name into a time slot (field) - if that slot is available. However, if another person has already reserved that slot, the field needs to have a mechanism to block a new entry into that same field.

What I would like to do is get the name of the field the user selected and run a script that would check to see if that field is empty or has already been reserved. If reserved, the user would be blocked from entering new information.

To me, this all hinges on knowing which field the user selects and I thought that is what Status(CurrentFieldName) would do. When I've tried using this function, I get nothing. What am I missing? Is there a better way? Thanks for your help.

The important question here is just HOW you are using Status(CurrentFieldName). The function will return the field name, but only after the user has clicked into the field. For example, if you attach a script to a field and set a global to Status(CurrentFieldName), you won't get the result you want as the script is run before the user is in the field. The script attached to the field must read:

Go to Field (FieldA)

Set Field(gFieldName, Status(CurrentFieldName))

-bd

(also posted in response to private message)

FieldA is whichever field you wish to check. I don't know what you are currently doing, so it is a little hard to know why it doesn't work.

The alternative to one script per field is to have the user click into the field and then click another button to run the script. Another alternative is to use a FM plug-in which will trigger a script on fields exit, this should work but it may have the same problem based upon if the user is considered "in the field" when the script is triggered by the plug-in.

My guess is that if you describe what you are trying to do at a higher level, an alternative way to perform the whole process will present itself.

-bd

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.