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

SOLVED

Text field values changing to "true" when I click submit by e-mail button

shippy84
Level 2
Level 2

I have some logic in my e-mail submit button to determine who needs to receive the form based on information in the form.  Based on my sample code, when I click the submit by e-mail button and TextFiel4.rawValue is D781008CX03, it will actually change the value in TextField4 to "true" when submitting the form.  What can i do to fix this issue?

if

(TextField4.rawValue = "D781008CX03" && CheckBox10.rawValue == true){

var myDoc = event.target;

myDoc.mailDoc(

false,

email_address@yahoo.com

, "", "",

"Request to Add "

+FuelRating.rawValue ,

"You have a new industrial request to add "

+FuelRating.rawValue

);}

1 Accepted Solution
Niall_O_Donovan
Correct answer by
Level 10
Level 10

Hi,

You are missing a second equal sign in your test for TextField4:

if (TextField4.rawValue == "D781008CX03" && CheckBox10.rawValue == true) {

     // script

}

Hope that helps,

Niall

View solution in original post

2 Replies
Niall_O_Donovan
Correct answer by
Level 10
Level 10

Hi,

You are missing a second equal sign in your test for TextField4:

if (TextField4.rawValue == "D781008CX03" && CheckBox10.rawValue == true) {

     // script

}

Hope that helps,

Niall

shippy84
Level 2
Level 2

Ahhh!!

Amature mistake  .  Thank you for the help and the quick response!!