1 Reply Latest reply on Feb 17, 2014 6:24 AM by philmodjunk

    radio buttons to run scripts?

    gasolineman

      Title

      radio buttons to run scripts?

      Post

           i have two scripts.  can i create a field with a radio button that has option 1 and 2 and whichever is selected would run the different scripts?

        • 1. Re: radio buttons to run scripts?
          philmodjunk

               The OnObject Modify trigger can be set on the field to perform a single script, But the script can check the value of the radio button field to determine whether to do the steps for option 1 or option 2:

               IF [ table::radioButtonField = "FirstRadioButtonValue" ]
                   Put steps you want for first radio button value here
               Else If [table::radiobuttonField = "SecondRadiobuttonValue" ]
                   Put setps for second radio button value here.
               End IF

               This script assumes that the user did not hold down the shift key and select a second value.