I have a two views on my form:
one view has some fields - if there is any validation errors - Next button(to go to 2nd view) should be disabled.
I am using hidden field called Dummy to pass the value to the button. And then I am applying conditional formatting to the button. If hidden variable is false, then disable the button, Below is the code I am using.
If form has errors in input, it is throwing message. But, if form has no errors,
function Next::OnClick(eventObj)
{
var error; error = XDocument.Errors.Count; if (error!= 0) XDocument.UI.Alert("You have not filled all required fields"); if (error == 0) XDocument.DOM.selectSingleNode("/my:myfields/my:Dummy").text = "TRUE";
}
Am I doing anything wrong in passing the value?
Please advise. Thanks