Skip to main content
Participating Frequently
April 17, 2025
Answered

Dynamic email address using radio button check mark

  • April 17, 2025
  • 1 reply
  • 491 views

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

Correct answer PDF Automation Station

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 +"; ";}

1 reply

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 +"; ";}

Participating Frequently
April 18, 2025

Thank you!