- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Hi Hugh,
I know how you feel - Livecycle is great, but can be daunting.
There are two main things you need to keep in mind i guess:
(a) text field need to be put into subforms for the show/hide thing to work
(b) rawValue and the click event
I've attached an example of what I think you are trying to do, it should provide some assistance.
I have put three demo text boxes into three subforms and labeled each subform with an easy name - subformA, subformB, subformC
I then set the initilize presence of each subform to "hidden" -- do that by clicking on the subform - not the textbox and going to the script editor - chose javascript and the initalize event from the menu - then enter this.presence = "hidden";
for each checkbox
then select the checkboxes one at a time and set their "click" events in the script editor ( i've used javascript) and set the function using
if (this.rawValue == "1")
subformC.presence = "visible";
else subformC.presence = "hidden";
this code allows show/hide from the checkbox - you can have text shown for each checkbox at the same time with this
if you want only one textbox at all - ie mutually exclusive and tick untick let us know...............
hope thats of some help to you - the demo file should give you a good place to start from
good luck
Views
Replies
Total Likes