Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Help! Basic if statement...


Not applicable
I need to create an if statement and I'm unsure how. If a radio button is chosen, I need the Submit by E-mail button to only email one address instead of the regular 4 for the other radio button.

Is this possible?
1 Reply


Not applicable
check this PDF

It uses a regular button rather than the built in submit button

I have created a variable called emailAddresses which changes depending on which radiobutton is checked. the script on the button is as follows:

var emailAddresses;

if (form1.sub.radios.rawValue == 1)

emailAddresses = "";

if (form1.sub.radios.rawValue == 2)

emailAddresses = ";";{cURL:"mailto:" + emailAddresses + "?subject=Submitted Form&body=Please find attached the completed form.",cSubmitAs:"XDP",cCharset:"utf-8"});