(this has already been posted in the Scripting forum. Due to the lack of response, I am coming here to the Land of C/C++ Developers)
What is the proper way to deal with cascading triggers in AcroForms?
My question refers to the forms in which there is a binary question such as:
"Are you interested in travel?"
When the user clicks "Yes", there are further questions whose interactive fields are dot.hidden (or "!"), depending on the answer.
So far, I can handle the 1-level cases fine, but my doubt is how to implement nested dependencies. For the sake of simplicity, I would prefer to define the cause-effect relationship once ("Every time the 'Interested in Travel' box is checked, the field 'International or Domestic' should be visible") and send some sort of message/trigger downstream.
I would like the right things to happen (cascading triggers included) when the "Clear Form" menu command is selected.
Maybe I should look into C/C++ programming?
I guess my problem is that I have some basic college experience in digital circuit design, and would like the forms to be programmed and behave in the same fashion as digital logic.
The "Clear Form" menu item, of course, would be equivalent to the reset button.
Perhaps it is possible to hook my code onto the "Clear Form" menu item?
It also allows you to specify which form fields and as such you could use it for clearing a section of your form. or even just a specific form field.
(For Reader you need Form filling rights.)