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

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

Recommended Posts

Posted

I have two fields utilizing radio buttons. Each year I need to reset these buttons to the default value I have set. I am trying to use a script to go through the records and perform this task. My problem is that it will reset to no value being highlighted. example is one radio button is "No form" and the other is "Complete". I want it to reset to "No Form" from "Complete"

Help would be appreciated.

Thanks

Posted

Wenzelj:

You've got to make sure that you're setting the field to exactly one of the radio button values. One way to check what's going on is to look at the field as a regular text field. See if there is a difference between how the field looks after scripting, and after clicking on the "No Form" button. Perhaps there are extra quotes or something like that. If the value of the field is not identical to a radio button value, then when the field is formatted as a radio button, it appears that no value has been selected.

-Stanley

Posted

Hi wenzelj,

Try this and see if it does what you want. I would use a small number of records to start with. (i.e. find all records, omit a couple of the records, then show omitted.)

Enter Browse Mode

Go to Layout [ YourLayout ]

Go to Record/Request/Page

[ First ]

Loop

Set Field [ YourFieldHere , "Complete" ]

Go to Record/Request/Page

[ Next, Exit after last ]

End Loop

HTH

Lee

Posted

Hi Wenzel,

It sounds like your script emties the field(s) value.

It should set the field(s) value to "No Form"

Ernst

Posted

when I perform the script the value in the field is 0. I set it to popup list and a standard field and the value of 0 keeps being displayed. Any suggestions

Posted

I used "Complete" in the script for Set Field, after the other post came in, I believe you want to change it to "No form". However, I also noticed that you have used two different formats of the word Form (form) in your "No form". Your script step needs use the exact words of your radio button. (i.e. "No form" or No Form"). BTW, it is often these small typos that ruin relationships, calculations, scripts steps, etc.

HTH

Lee

wink.gif

This topic is 7494 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.