Settings of Yes/No button
Including validations for email entry textbox
Settings of submit button
Settings for “Submit” button. Button action should be “Save and Submit” since we do run custom JavaScript’s.
Custom JavaScript
This should be applied in the form settings section.
[code language="javascript"]
function UserAgreement(source, arguments)
{
// varAgree is checkbox client id
alert(NWF$('#'+varAgree).prop("checked"));if(NWF$('#'+varAgree).prop("checked"))
{
arguments.IsValid=true;
}
else{
arguments.IsValid=false;
}
}
[/code]
Comments
Post a Comment