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
BedrockMission!

Learn More

View all

Sign in to view all badges

Displaying Text When Button Pushed

Avatar

Avatar
Level 1
Steve26
Level 1

Likes

0 likes

Total Posts

4 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
Steve26
Level 1

Likes

0 likes

Total Posts

4 posts

Correct Reply

0 solutions
View profile
Steve26
Level 1

21-02-2009

I am preparing a form in Designer with multiple check-boxes. The instructions for each check-box are so detailed that even an experienced user will occasionally want to review the detailed parameters. I would like to place a button next to each check-box which, when pushed, displays pdf or typed text of the relevant portion of the instructions (i.e. - every button would display a different pdf/text). Can this be done with a limited amount of scripting? Also, can the pdf/text be "embedded" into the form?

Replies

Avatar

Avatar
Validate 1
Level 10
Niall_O_Donovan
Level 10

Likes

646 likes

Total Posts

4,352 posts

Correct Reply

786 solutions
Top badges earned
Validate 1
Boost 500
Boost 50
Boost 5
Boost 3
View profile

Avatar
Validate 1
Level 10
Niall_O_Donovan
Level 10

Likes

646 likes

Total Posts

4,352 posts

Correct Reply

786 solutions
Top badges earned
Validate 1
Boost 500
Boost 50
Boost 5
Boost 3
View profile
Niall_O_Donovan
Level 10

22-02-2009

Steven,



We had a similar requirement for one of our forms. What we did was to create a multi line text field called additional_guidance.



Then in the mouseEnter event of each field we had the following Formcalc:



additional_guidance = "This is further information about this checkbox"



On the mouseExit event we had:



additional_guidance = null



Alternatively, you could set up the root container as a flowed content. Then the checkboxes would be in a positioned content subform and subsequent fields in another positioned subform. In between these you would have a hidden invisible flowed subform which contains the notes in a text field or static text. This would appear or be hidden depending on mouseEnter events or click events on buttons.



If you need to provide alot of detailed information in a formatted layout, then you could set up a page for each checkbox (or one page for all of the checkboxes) at the end of your form (e.g. called checkbox1_notes). You would set the presence to hidden. Then your button next to checkBox1 would have javascript like this in the click event:



checkbox1_notes.presence = "visible";

xfa.host.currentPage = xfa.host.numPages - 1;



Remember to put a hide button on this help page with the folloeing javascript in the click event:



checkbox1_notes. presence = "hidden";

xfa.host.setFocus(xfa.form.form1.p1.checkbox1); //this would be the full reference for your object



Good luck,



Niall

Avatar

Avatar
Level 1
Steve26
Level 1

Likes

0 likes

Total Posts

4 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
Steve26
Level 1

Likes

0 likes

Total Posts

4 posts

Correct Reply

0 solutions
View profile
Steve26
Level 1

23-02-2009

Outstanding response. Thank you very much.