Hi, I have a Form that needs to be validated before it is saved.
The HTML button is:
The validation is:
function validRequired()
{
alert(“1”);
var thisdoc = document.forms[0]
if(thisdoc.internetaddress.value == “”)
{
alert(“You may not leave Email blank.”);
thisdoc.internetaddress.focus();
return false;
}
else if(thisdoc.answer.value == “”)
{
alert(“You may not leave Answer blank.”);
thisdoc.answer.focus();
return false;
}
else
{
return _doClick(‘852572A40043994D.e3110ef4f3b1b667852572a3004df42d/$Body/0.11F6’, this, null)
}
}
I see the “1” alert but nothing else works!!! I tried to figure out what is wrong and compare with other related post on this forum, but I could not find a solution ! Can you help ?
And one more thing, is there a way to avoid the “return _doClick…” that doClick reffers to a Notes Button that contains:
@Do(@Command([FileSave]); @Command([ToolsRunMacro];“(ThisAgent)”))
Thanks for your help !