Script for hiding unused pages of a form

Avatar

Avatar

Staffle

Avatar

Staffle

Staffle

31-08-2015

Hi

I want to enable the user to hide page 2 of a form if it is not used. This script:

if (this.rawValue==0){

xfa.resolveNode("page2").presence = "hidden";

}else{

xfa.resolveNode("page2").presence = "visible";

}

does not do it although it worked in the past (do I need more than two pages in order to delete one?

Could you please tell me wha'ts wrong?

Thank you!

Lisa

Accepted Solutions (0)

Answers (4)

Answers (4)

Avatar

Avatar

PDFGuru

Avatar

PDFGuru

PDFGuru

01-09-2015

Hi Lisa,

I don't see the form attached.

Could you please send it to lcdesignerforms@gmail.com

Thanks,

Avatar

Avatar

PDFGuru

Avatar

PDFGuru

PDFGuru

01-09-2015

The script looks fine to me, maybe the event on which it triggering needs to be changed.

However, I can look at your form if you want.

Avatar

Avatar

Staffle

Avatar

Staffle

Staffle

01-09-2015

Thanks! very helpful

Avatar

Avatar

Staffle

Avatar

Staffle

Staffle

01-09-2015

Hi Guru!

If you could find out why it does not work, that would be much appreciated. I attached the form.

Thanks & best regards,

Lisa P