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
);}