Script for hiding unused pages of a form

Avatar

Avatar
Validate 1
Level 1
Staffle
Level 1

Likes

2 likes

Total Posts

32 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
Staffle
Level 1

Likes

2 likes

Total Posts

32 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
Staffle
Level 1

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
Boost 5
Level 2
PDFGuru
Level 2

Likes

14 likes

Total Posts

75 posts

Correct reply

10 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Affirm 5
View profile

Avatar
Boost 5
Level 2
PDFGuru
Level 2

Likes

14 likes

Total Posts

75 posts

Correct reply

10 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Affirm 5
View profile
PDFGuru
Level 2

01-09-2015

Hi Lisa,

I don't see the form attached.

Could you please send it to lcdesignerforms@gmail.com

Thanks,

Avatar

Avatar
Boost 5
Level 2
PDFGuru
Level 2

Likes

14 likes

Total Posts

75 posts

Correct reply

10 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Affirm 5
View profile

Avatar
Boost 5
Level 2
PDFGuru
Level 2

Likes

14 likes

Total Posts

75 posts

Correct reply

10 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Affirm 5
View profile
PDFGuru
Level 2

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
Validate 1
Level 1
Staffle
Level 1

Likes

2 likes

Total Posts

32 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
Staffle
Level 1

Likes

2 likes

Total Posts

32 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
Staffle
Level 1

01-09-2015

Thanks! very helpful

Avatar

Avatar
Validate 1
Level 1
Staffle
Level 1

Likes

2 likes

Total Posts

32 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
Staffle
Level 1

Likes

2 likes

Total Posts

32 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
Staffle
Level 1

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