this.getField("Answer").value = "Maybe";
On my test form, I have a dropdown menu (named "Selection") where the user makes their selection, and then on another page, that same selection is displayed in a radio button group (named "Result") with that option checked. The export values in the dropdown and the radio button group are the same. Here's what I did:
var mySelection = this.getField("Selection").value;
this.getField("Result").value = mySelection;
I also checked the "Commit selected value immediately" option.
It's not working properly; the selections in the radio group are always one selection behind the selections in the dropdown list, exactly as they would be if I had not selected the "Commit selected value immediately" option. What am I doing wrong?
Move it to the Validation event and change the first line to:
var mySelection = event.value;
Hmm... it's not working for me. Would you mind looking at my PDF?
Sure. You can share it via Dropbox, Google Drive, Adobe Document Cloud, etc., or you can email it to me directly to try6767 at gmail.com.
Right... all my export values are in lower case. Do you see a typo somewhere?
The export values of the drop down are not lower case.
Sure they are:
Right, but the "event.value" property returns the display value, though.
I would recommend getting rid of the export values and changing the values of the radio-buttons to match those in the drop-down.
Got it, thank you both!