I am trying to find a way to conditionally add a page to my form. I have attempted to create this as a result of an 'action' but have been unsuccessful in locating the correct action.
To summarize, I am trying to add a separate page to my existing form containing instructions when a specific checkbox is selected. The seperate page is text only and does not have any form/field inputs. Is there a relatively simple way to accomplish this task?
Solved! Go to Solution.
you could just have the page there but set to hidden and then when the checkbox is checked it is set to visible. You could put something like this in the change event of the checkbox (in formcalc):
if ($ == 1) then
otherpage.presence = "visible"
else otherpage.presence = "hidden"
I hate to ask (what I imagine) are stupid questions, but I'm not really sure how to go about entering the script you offered. I was originally thinking that I would find a place to put the script in the object properties (Field, Value or Binding), but I don't see an appropriate place. Is this something I should enter directly as XML? I didn't see any options for how the form handles the change event either.
I appreciate your time and response.