Hello!
I have run into a little problem. I am building a form and I have a few buttons that I would like to attach to a visibility. So when I click on the button that specific visibility shows up. I am not really sure how to set that up. Any help please!!
If I understand you correctly: you have buttons with a visibility setup and you would like to put them on another visibility? If that is the case, it is a little tricky, but there is a helpful hint. Add an edit field on the visibility you would like to add the buttons to, then drag the buttons with their current visibility next to the edit field. Once they are stacked you can delete the edit field. I've tried stacking visibility regions in the past and could not. Adding the edit field seems to do the trick though. I hope I'm answering your question.
Stacking visibilities is pretty tricky, but no that is not my issue. I have buttons not in a visibility and what I would like is if when I clicked the button a certain visibiliyt would pop up.
Set up some document variables in the code area, one for each visibility region. So, if you have 3 visibility regions have this in your code area:
{DOCUMENT.VISIBILITY_1} {DOCUMENT.VISIBILITY_2} {DOCUMENT.VISIBILITY_3}
Then set the condition in each visibility region to the appropriate document variable with:
DOCUMENT.VISIBILITY_1 == "T"
Then put the appropriate code in each button. So for the first region, the buttons code would be:
{DOCUMENT.VISIBILITY_1 = "T" DOCUMENT.VISIBILITY_2 = "F" DOCUMENT.VISIBILITY_3 = "F"}
And then the second would be:
{DOCUMENT.VISIBILITY_1 = "F" DOCUMENT.VISIBILITY_2 = "T" DOCUMENT.VISIBILITY_3 = "F"}
third:
{DOCUMENT.VISIBILITY_1 = "F" DOCUMENT.VISIBILITY_2 = "F" DOCUMENT.VISIBILITY_3 = "T"}
Does this make sense? There are few other ways to do this, but this is usually how I do it it. If you have a lot of visibility regions and plan on adding more in the future, you may want to create a function to put in each button, that way you can manage them much easier. I can help you with that if you want, also.
Thank you so much this worked!