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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Script for hiding unused pages of a form


Level 2


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";


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!


0 Replies


Level 4

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.


Level 2

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


Level 4

Hi Lisa,

I don't see the form attached.

Could you please send it to