This conversation has been locked due to inactivity. Please create a new post.
This conversation has been locked due to inactivity. Please create a new post.
I have a pdf form with the following.
page1 = visible
page2 = hidden
Page 2 can be made visible by clicking a button on page1.
The problem I'm having is that after I make page2 visible, save it and then re-open the form page 2 is still hidden.
*the form has been saved as dynamic.
Solved! Go to Solution.
Views
Replies
Total Likes
Try this
if(ShowpageTick2011.rawValue == 1){ //if tickbox flag is ticked
form1.WM2012.presence = "visible";
}
else{
form1.WM2012.presence = "hidden";
}
Views
Replies
Total Likes
Hi,
you can write a script on presave event to hide/show the page before saving your form.
Hi chalukya, thanks for the suggestion. Unfortunalty this did not work either. I programmaticly call for the page to be hidden and this works but looks like my call to make the page visible does not seem to make any effect after I save and reopen the file.
The way I've done the page visibilty is based on a button click and a tick box (eventually this tickbox will be hidden as well).
page 1 is called WM2011 and page2 is called WM2012
This is the code I've got on the button click.
xfa.resolveNode("WM2012").presence = "visible"; //When user clicks button set the visiblity of page2(WM2012) to visible.
ShowpageTick2011.rawValue = 1; //when user clicks button set tickbox flag on
This is the code I've gotten on initialise of page1
if(ShowpageTick2011 == 1){ //if tickbox flag is ticked
form1.WM2012.presence = "visible";
}
else{
form1.WM2012.presence = "hidden";
}
Views
Replies
Total Likes
Try this
if(ShowpageTick2011.rawValue == 1){ //if tickbox flag is ticked
form1.WM2012.presence = "visible";
}
else{
form1.WM2012.presence = "hidden";
}
Views
Replies
Total Likes
Thanks for that I belive your right, the '.rawValue' was missing.
I didn't use your code exactly but what I did was on the initialie of the tickbox I did the following.
if(this.rawValue == 1){
form1.WM2012.presence = "visible";
}
else{
form1.WM2012.presence = "hidden";
}
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies