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.

Automate Radio buttons?

Featured Replies

  • Newbies

I've been trying to use the SetField function to select a radio button based on it's value list with no luck in getting to work.

Am I going about it wrong?

Any insights would be appreciated.

-Thanks

Could you elaborate? Setting a field formatted as a radio button is no different than setting a normal field. Set Field [field; "value"] will work. The only requirement is that "value" be an item in the value list used to format the field.

  • Author
  • Newbies

See thats what I thought as well but I get the operator error when I set it using the semicolon. The script line looks like:

Hardware::ProductType ; "Computer"

And "Computer" is defined in a value list that I have created also labled ProductType. However it says that is expecting an operation (eg. +, -, etc)

So I switch to good old

Hardware::ProductType = "Computer" which is accepted as a forumula but it does not change the radio buttons when performed.

In Set Field [Field; "value"], Field is the target field; it does not go in the calculation. The semicolon separates the two parameters; it is not entered in the calculation either. The only thing entered in the calculation is "value". Set Field [Field; "value"] is the way it will appear in ScriptMaker once you have selected the field and entered the value.

  • Author
  • Newbies

Wow...

Thanks so much for clearing that up for me.

I can't explain how confused I had been on that one. I've been overcomplicating the whole process. Again thanks so much for your help.

No problem. Forum syntax is often confusing for new FileMaker scripters (to say nothing of ScriptMaker itself). We have mostly settled into presenting steps as they appear in ScriptMaker, to reduce confusion as much as possible. But it doesn't hurt to clarify that every once in a while.

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.