I have added a button in a PDF form that says "send an email" and I would like the form to be sent to different email addresses based on which checkboxes were selected previously.
For example, there is a question about the "Size of the company" with 2 checkboxes. Depending on which one is checked, the form should be emailed to different addresses.
I believe this can be achieved by using JavaScript code in the "Parameters" section of the button, but I am unsure about how to write this code.
Thank you for your help,
Florian