Disable a Signature after Validating Multiple Text Boxes


hello all,

 

i pretty new livecycle , code behind it, have managed cobble form suit needs.

 

i have put in place "check" on both print button , signature field make sure @ least 13 text boxes on form contain required information.  print button works fine, last stumbling block signature field.  when using same if statement in presign event, blank test fields highlighted , error message displayed, user can still sign document.

 

how can disable signing of document after validation checks completed?

 

if matters, below example (1 of 13) of iff statements using in both print button click event , siganture presign event.

 

 

if ((txtcontact.rawvalue==null) || (txtcontact.rawvalue=="")) {

app.alert("please enter contact name.");

txtcontact.ui.oneofchild.border.fill.color.value = "255,200,200";

}

else {

txtcontact.ui.oneofchild.border.fill.color.value = "255,255,255";

}

 

thanks much!

 

shane

hi,

 

you can use below code in presign event of signature field cancel sign if txtcontact value null.

 

xfa.event.cancelaction = true ;

 

the complete code below :-

 

if(txtcontact.rawvalue==null)
{
app.alert("please enter contact name.");

xfa.event.cancelaction = true;

}

 

--- hope resolves issue.



More discussions in LiveCycle Designer


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support