Need to Show/hide text on later page dependent on Button
BSisson Jan 21, 2014 10:43 AMOk, I am VERY new to Acrobat forms. I am trying to use Acrobat X to build a large custom survey PDF form to be used on a variety of Tablet platforms (PC/Android/Mac) so I am trying to limit any "special" coding that different platforms might not support.
I have scanned the discussion boards and found lots of close examples, but nothing quite fits.
Situation is like this. I have a LOTS of Radio Boxes, and Pull downs (16 pages worth)
Condition Red List
[ ] Condition One
[ ] Condition two
[ ] condition three
Condition Green List
[ ] Condition One
[ ] Condition two
[ ] condition three
Some are exclusive (only one valid choice) others support multiples ( condition one AND three)
Easy so far....
SEVERAL (16) PAGES LATER there is a SUMMARY page where I want to display (or not) the descriptive Text associated with SOME of the earlier choices.
______________________________________________________
Pretty Summary Header, date project numbert etc....
Disclaimer text Bla Bla Bla
The follwoing is a SUMMARY of the major issues from the previous pages
White summary : This is the Text associated with White condition two. this could be a line, a list of things, or a paragraph
Red summary : This is the Text associated with Red condition three. this could be a line, a list of things, or a paragraph
Green summary : This is the Text associated with Green condition two. this could be a line, a list of things, or a paragraph
Green summary : This is the Text associated with Green condition three. this could be a line, a list of things, or a paragraph
More disclaimer text
_______________________________________________________
I understand (sortof) that I can have a Variable "red_list_1" that can be true/false and that will affect a line/field back on the summary page....
The following is a cut-n-paste ROUGH of what I think I need... it hasn't been tested (yet) and I am sure there are typos. There are LOTS of examples of scripts that make things appear/dissapear (like the following) but I am trying to find a SIMPLE one that will the best when there are lots of them....
var f = this.getField("Red_list_1");
if (f.value==(true))
{
g.display = display.hidden;
}
else
{
g.display = display.visible;
}
Ok...a couple of things I don't yet get...
Can I combine statements/functions like I used to in (insert old language here) like
if (this.getfield("Red_list_1").value)==true then g.display = display.hidden else g.display = display.visible
On my Summary page, do I need lots of fields that hide/disappear, or can I build one Monster field with lots of stuff inside it?
If I have lots of fields, how do I get them to flow nicely together?
My form is HUGE (16 pages of questions) , so I will have lots of text that 'can' be copied to the summary page, is there an easier way to build such a thing?
Lastly, and this is may be a question unto its self... If the "Summary" needs to go onto a 2nd (or more) page, how do I make sure it will "flow" nicely?
Note: The nice thing is that the filled in form -IS- the final product. I don't need to upload it, syncronize it, or otherwise send it anywhere. I will save the filled in form for reference and edits (if needed) but the client get a copy of all 17 pages (16 + summary) and thats it.
Oh yes...I am using Acrobat as it works, is supported, and doesn't need the cloud and will run on standalone devices with no cloud connectivity. Once the surveyor has the form they can go anywhere with it, complete the form, even print a copy of it, without needing to upload anything.
Thanks for the help, I have been working this for a while, and keep getting partial solutions, some that work great, but are really really messy to try to do on a large scale, others use lots of stuff supposedly not supported on the Apple Ipad reader. (everything I have tried has worked???, not sure the issue)
