Skip to main content
Participating Frequently
Apr 17, 2025 11:20 PM UTC
Answered

Dynamic email address using radio button check mark

Hello 

I am trying to create a JS to send an email based on a radio button check mark.

I have static email  to_address. in the cc_ address I want to creat a script that will cc certan indivudals based on what is checked. I am just beginer at writing code but do have an understandin.

Thank you

PDF Automation Station
Community Expert
Apr 18, 2025 1:43 AM UTC

Make the export values of the radio buttons or check boxes email addresses.  Then something like this in the script.

 

var ccAddresses  ="";

if(this.getField("Email1").value!="Off")

{ccAddresses+=this.getField("Email1").value +"; ";}

2 replies

PDF Automation Station
Community Expert
Community Expert
Apr 18, 2025 1:43 AM UTC

Make the export values of the radio buttons or check boxes email addresses.  Then something like this in the script.

 

var ccAddresses  ="";

if(this.getField("Email1").value!="Off")

{ccAddresses+=this.getField("Email1").value +"; ";}

Translate
Participating Frequently
Apr 18, 2025 4:56 PM UTC

Thank you!

Translate