Skip to main content
Participant
December 16, 2019
Question

If/then statement when clicking submit button

  • December 16, 2019
  • 1 reply
  • 285 views

Hello,

 

I'm at a loss here and I was wondering if anyone can help. Thank you so much in advance.

I'm looking to check if fieldA which is a dropdown yes or no field. If fieldA is Yes, then do nothing. If fieldA is No, then get the date and time and convert it to a hexidecimal value. What is wrong with my script?

 

var fieldA = this.getField("Resubmission").value;
var hexString = this.getField("LRFNO").value;
if (fieldA = "Yes") {
hexString = "";
}
else {var ts = Math.round((new Date()).getTime() / 1000);
hexString = ts.toString(16).toUpperCase();
}

This topic has been closed for replies.

1 reply

bebarth
Community Expert
Community Expert
December 16, 2019

Hi,

Try with :

...

if (fieldA == "Yes") {

...

@+