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.

Selecting value list and run scrip?

Featured Replies

Hi,

I was wondering from selecting from value list and running a script based on which value is selected.

ex. Lets say there is field with value list defined. And by selecting one of those value from that field, can it have perform a script?

Thanks in advance!

Hi,

this can be done (although a little clunky).

you need your value list to be formatted as a pop-up list on a mac or a pop up menu on a pc.

then you need to script it so that it pauses for 1 second and then checks to see if a selection has been made, otherwise loop back into the pause.

Then, once a selection has been made, continue your script for the specific selection.

As I said, this is clunky because if you add a new value to the list, you need to change the script to recognise that.

So, off the top of me head

Allow User Abort [Off]

Go to field [ value list field ]

Loop

Pause/Resume script ["0:00:01"]

Exit Loop If [ Status(CurrentFieldName) <> "value list field" ]

End Loop

# If you didnt select anything but leave the field then stop the script

If ["IsEmpty(value list field)

Exit Script

End If

# You selected something so lets see what it was and perform the relevant action

If ["value list field = "abc"]

Perform Script ["abc"]

Else

If ["value list field = "xyz"]

Perform Script ["xyz"]

# Continue to else if for all your required values

End If

End If

This gives you a general idea. So, If you dont make a choice it stays in the loop. But if you tab out without making a choice the script runs, sees you didnt make a choice and stops.

But, if you did make a choice it will see that choice and run the relevant script.

So, there ya go. One way anyway. Personally, I use SCRIPTit for all this sort of work (yes, I know its a plugin and blah blah blah, but it gives so much flexibility).

Anyhow. HTH

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.