Hello, I searched through this forum and I wasn't quite able to find the solution for my problem.
I am trying to create a pdf form with radio buttons for options that the user can pick. There are basically 4 groups of radio buttons with two button values for each group.
Group 1 - Option A/Option B
Group 2 - Option C/Option D
Group 3 - Option E/Option F
Group 4 - Option G/Option H
Based on the different combinations, a textfield is updated... "txtSortedOption"...
How can I get "txtSortedOption" to update itself if the user decides to change from Option C to Option D? Do all instances and options have to be hard coded into each button code?
I currently have it such that if you select Option A button, it changes "txtSortedOption" to a specific value, and so forth as you go down... this is not the best way... I am hoping for a way to have "txtSortedOption" to determine it's value based on the selected group values.
Thank You,
SanD
You can use a JavaScript array and the "join()'" method to create a result value. You can write a script to concatenate the field's values and drop unselected options. Or write a function that can concatenate up to 3 fields with an optional delimiter and this function can adjust for missing values.
George Kaiser