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

Clearing Signature field

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

24-06-2013

Good morning all. I am trying to get a signature field, "COUNSELING_DATE_INITIAL5", cleared when No is selected. Below is the javascript I have written, but it is not working.

 

var  question = xfa.host.messageBox("If you have an Entry Card to digitally sign this field,
please select Yes. If not, please select No, complete the form, print, manually signe.\n\n"
, "Question?", 3,2);

 

if (question==3){

  form1.Page1.COUNSELING_DATE_INITIAL5.access ="readOnly";

  form1.Page1.COUNSELING_DATE_INITIAL5.rawValue="";

    xfa.event.reset("form1.Page1.COUNSELING_DATE_INITIAL5");
}

 

if (question==2){

   form1.Page1.COUNSELING_DATE_INITIAL5.access ="open";

  xfa.host.setFocus("form1.Page1.COUNSELING_DATE_INITIAL6");

}

 

Please, I need help with the clearing part of the signature script that deals with the signature field.

Thanks

v/r

Tammy

Accepted Solutions (1)

Accepted Solutions (1)

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

24-06-2013

Thanks all, I finally got it to work. I added the following piece of code

xfa.host.resetData("xfa.form.form1.Page1.COUNSELING_DATE_INITIAL5");

in place of

   xfa.event.reset("form1.Page1.COUNSELING_DATE_INITIAL5");

and it works perfectly.

Answers (0)