LiveCycle Designer - How do you stop the "Submit by E-mail" button to generate the email if the Signature Field object is not signed but allow to generate when signed?

Avatar

Avatar
Level 1
arenc26710907
Level 1

Likes

0 likes

Total Posts

1 post

Correct reply

0 solutions
View profile

Avatar
Level 1
arenc26710907
Level 1

Likes

0 likes

Total Posts

1 post

Correct reply

0 solutions
View profile
arenc26710907
Level 1

06-04-2015

I am trying to stop the Submit by Email button in LiveCycle Designer from generating the email to send when clicked, if the Signature Field on the form is sign then it will be able to process normal.

How do I complete the formula?

So for this is what I have:

var oState = event.target.getField("Form1[0].Main3[0].SignatureField[0]").signatureValidate();  

if (oState != 0)  

     EmailSubmitButton.execEvent("click");

else 

     xfa.host.messageBox("You have not signed the form. \n\nPlease click OK and then click the signature field to sign the form. \n\nThank you!", "Error submitting this form", 0, 0);   

  Form1.Main3.EmailSubmitButton.validate = "disabled"

}

Thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar
Coach
MVP
radzmar
MVP

Likes

397 likes

Total Posts

2,687 posts

Correct reply

492 solutions
Top badges earned
Coach
Ignite 3
Ignite 1
Validate 1
Give Back 50
View profile

Avatar
Coach
MVP
radzmar
MVP

Likes

397 likes

Total Posts

2,687 posts

Correct reply

492 solutions
Top badges earned
Coach
Ignite 3
Ignite 1
Validate 1
Give Back 50
View profile
radzmar
MVP

07-04-2015