cancel
Showing results for 
Search instead for 
Did you mean: 
Workflow Hero

Display the text value of radio/choice control

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

Labels: (2)
0 Kudos
Reply
2 Replies
Workflow Hero

Re: Display the text value of radio/choice control

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

0 Kudos
Accept as Solution Reply
Workflow Hero

Re: Display the text value of radio/choice control

Please try

NWF$('#' + Condition1 ).find("input:checked").val();

Accept as Solution Reply