May 17, 200421 yr 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
May 17, 200421 yr 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
May 17, 200421 yr 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
May 17, 200421 yr Hi Wenzel, It sounds like your script emties the field(s) value. It should set the field(s) value to "No Form" Ernst
May 17, 200421 yr Author 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
May 17, 200421 yr 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
Create an account or sign in to comment