Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Why is this code not working?

Avatar

Avatar
Validate 1
Level 2
lpianwi
Level 2

Like

1 like

Total Posts

69 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
lpianwi
Level 2

Like

1 like

Total Posts

69 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
lpianwi
Level 2

21-06-2013

Good day all. I have written to following code on a signature field, that will only work if the user has an access to the building. It works fine, but if the question was true, and the user changes his/her mind to say No, it does not work. This code is on mousedown event. I would like to clear the signD which is a signature field whenever No button is selected. Here is the code:

 

 

var question = xfa.host.messageBox("If you have an Access ID Card to sign this field, please select Yes.
If not, please select No, complete the form, print, manually sign, and submit/send as appropriate.\
n\nYour digital signature has the same legal effect and consequences as a hand written signature.\n\n"
,
"Question?"
, 3,2);

 

if (question==3){

SignD.access="readOnly";
SignD.rawValue="";
}
else if (question==2){

SignD.access="open";
xfa.host.setFocus(qDATE);
}











Please I need help with thi script.

Thanks

v/r

Tammy

Accepted Solutions (0)

Answers (0)