Wednesday, 29 August 2018

Radio Button as mandatory field

How to make the radio button group as required.

By default, LC Designer doesn't validate the NULL value of the Radio Button Group as Required Field. We need to use JavaScript to implement the logic.
In my example I used a button to first validate the Radio Button Group and if it is not NULL then it sends an email.

Radio Button Required

if(RadioButtonList.yes.rawValue == null && == null)
app.alert("Please select the option");

var eid = "";
var sub = "test subject";
var bdy = "Sample Body";{cURL:"mailto:" + eid + "?subject=" + sub + "&body=" + bdy ,cSubmitAs:"PDF",cCharset:"utf-8"});


No comments:

Post a Comment