Hello.
I have a radio button called AcceptResponsibility with two choices Yes and No.
If the user selects no i would like a dialogbox to pop up forcing the user to enter a reason why and for the status field to changed from submitted to rejected.
If the user selects yes i would like the form to save and for the status field on the form to change from submitted to approved.
I dont know how to get the value selected in order for me to do the above! How do i achieve this by script or formula?
Thanks
Subject: Retrieve Radio button values
You Can use @GetField(“radiobutton”) or use the NotesUidocument class and use the method FieldGetText.
Subject: RE: Retrieve Radio button values
If you want your actions to occur right as the user makes a selection in the radio button field --In formula language, you can code things in the InputTranslation event to do things according to what the radio button value is, and set other fields’ values, probably even show your dialog box. Or, you can code LS or JavaScript in the OnChange event of your radio button field to do the same things.
If you want to do it via a form action button or something disconnnected from the radio button itself –
then Rehan’s suggestions will work for you.