hi, I am very new to livecycle. Bought it on last day availble actually...
i am trying to make an interview form, and there’s Zaire 4 possible questions in each section but only 2 need to be used per section. I would like to figure out how to make it that when a checkbox is selected it opens up a text feild below it for details to be entered.
If you are very new to it, I would suggest doing these tutorials at the link below. It helped me immensely when I started out. It might also help you to understand my solution without me having to go into extra details.
There are a number of things to consider. If you are allowing two selections, you will need to use checkboxes rather than radio button groups. You will need to add code to the radio button so only a maximum of 2 can be selected. When checking a radio button, it should unhide the textfield.
For my demo, i have added four checkboxes and four textfields, one for each.
The code needs to be modified to restrict checkbox usage. Still in the change event, edit the code.
Restricting the selection of two checkBoxes only.
This can be a little hard to get your head around. You need to add more logic to handle the restriction of the checkboxes. Basically, if a checkbox is checked, have a look to see if others are checked. If another is checked, make the remaining two checkboxes readOnly. You also need to add code so that if a box is unchecked, you have access again to the checkboxes.