Skip to main content
Participating Frequently
April 17, 2025
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
April 18, 2025

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
April 18, 2025

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
April 18, 2025

Thank you!

Translate