I'm sure someone else has already posted the answer, but I'm pretty new to Adobe, so I'm probably not searching for the right thing which is keeping me from finding it.
First, my goal. I want to be able to click on a radio button and have everything below it slide down and the subform holding a TextField appears below it to enter why you clicked that radio button.
I feel like I've almost got it figured out using:
The problem I am having with this is it shows up all the time unless I click the radio button, then it disappears. Clicking off the button does not bring the TextField back. I tried switching the presence between the two, but then nothing happens at all.
As I understand it I would need to use invisible instead of hidden for the information below to move up and down, but I'm taking baby steps. Never taken any classes or had anyone teach me how to use LiveCycle or Acrobat and there seems to be a pretty steep learning curve.
I couldn't figure out how to put my file on here, so I put it at the locations below. Any help is greatly appreciated!! Thanks.
you have put your script in the click event so the presence state won't be effected until the button is pressed. Try putting your script into the 'layoutReady' event or starting off with the presence set to hidden and then it will only become visible when the button is clicked.
When I use the "find" function I'm not able to find any "layoutReady" in the XML Source tab. Is there something else I should be looking for? Thanks a lot for your reply!
Are you using Livecycle Designer? If so you will be able to add an event in the design view rather than doing everything through xml. You can get the script editor up by pressing ctrl + shift + f5 on a PC and then put the script in there.
Actually, I just figured it out. The raw value, when working with radio buttons, needs to be the integer of the button you are working on. Also, have to use way more subforms than I've been using because the overall form has to be flowed, not positioned. I'm putting all the coding in now, then I'll post the completed form for people to use as a reference if they have the same question I did.