Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7010 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

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

Posted

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.

  • Newbies
Posted

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.

Posted

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.

  • Newbies
Posted

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.

Posted

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.

This topic is 7010 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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