pui.getRadioGroupValue( fieldName )



This function retrieves the value of a field that is bound to the radio button group property of one or more radio buttons. Additional explanation can be found in the Using Radio Buttons topic.

Parameters:

  • fieldName – name of the bound field.

Return Value:

  • Returns the value property of the radio button in the group that has been selected, or null if none of the radio buttons have been selected

Example:

var gender = pui.getRadioGroupValue("gender"); if (gender === null) { alert("Nothing selected!"); } else if (gender === "M") { alert("RadioButton1 was selected"); } else if (gender === "F") { alert("RadioButton2 was selected"); } else if (gender === "N") { alert("RadioButton3 was selected"); }

This function was added in Profound UI version 6, fix pack 16.0.