In order to show the user my copyright notice and to get the user's name and gender (which will be used to fill in read-only text boxes on my PDF form), I need to have a dialog box open when the form opens. The dialog box should have the copyright notice and a statement that if the person types in their name and presses an "Accept" button, they agree to the copyright restrictions, and the form is opened with their name in the appropriate places on the form. If they press cancel or do not type their name, the form does not open.
The gender part will be 2 radio buttons. When the user chooses one or the other, that will trigger the use of the words "him" and or "her" at certain points throughout the form.
My questions are these:
1. Can you either provide sample code or send me in the right direction to learn how to have dialog boxes open requiring input before the form can open?
2. I am having trouble understanding the examples in the Acrobat JS for adding radio boxes to a dialog box. Can someone help with the code or point me in the direction to learn about it more?
3. How do I assign document-wide variables in the opening dialog box for the name and the gender response?