I have a choice control (radio button) and save button.
What I wanted to do is to display the text of the selected radio button in the alert
But the below javascript doesn't seem to work when I put the code in 'On Click' of Save Button.
var varCond1 = NWF$('#' + Condition1 + 'option:selected').text();
alert(varCond1);
Platform: Ninex Forms for Office 365
1. Just add a "Custom validation function" for a choice control (radio button), example: testAlert
2. In Settings, add Custom Javascript with:
function testAlert(source, arguments){
alert("yourSelectedValue");
arguments.IsValid = true;
}
3. Publish and test with "Save" button
Please try
NWF$('#' + Condition1 ).find("input:checked").val();