September 16, 200520 yr 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
September 16, 200520 yr 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.
September 16, 200520 yr 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.
September 16, 200520 yr 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.
September 16, 200520 yr 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.
September 17, 200520 yr 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