Hi All,
I am attempting to dynamically hide a Master Page when outputting an ADOBE Form, but page contents is blanked out and a blank page is still outputted. This is what I have in my SFP Form:
Variable GV_HAS_TEXT when = null, I want to hide ThirdPage.
Below is the Form Calc Script I have for ThirdPage in Events: Initialization, Form Ready and Layout Ready:
if ( $.GV_HAS_TEXT == null ) then
$.presence = "hidden"
endif
When the above script condition is met, the Subform contents are all hidden, but a blank page is still outputted at the end of the Form....which is what I don't want?
Would appreciate any assistance.
thanks,
Con.
Request clarification before answering.
I have found a solution, which may help others with similar issue:
1. In the Hierarchy View, right click 'data' node (highest level in hierarchy), and click 'New Page', which will insert a Subform at the same level as the 'Page Set' node. You should now see a new page appear in the 'Design View' Tab for the Subform.
2. Design your output for this page under the new Subform created in previous step. Insert a variable (eg. GV_SHOW_PAGE), inside this Subform and hide it.
3. In the Form Interface, set variable GV_SHOW_PAGE based on logic which determines if there is content for another page to be output, eg. set GV_SHOW_PAGE = 'X', else clear GV_SHOW_PAGE if not.
4. At the Subform level in the Hierarchy View, in it's 'initialize' event add the following FormCalc code via the script editor:
if ( $.GV_SHOW_PAGE == null ) then
$.presence = "hidden"
endif
The above code will stop output of the page.
Con.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.