Skip to main content
Known Participant
March 14, 2018
Answered

JavaScript to auto populate text field value

  • March 14, 2018
  • 1 reply
  • 859 views

hi, i need javascript to manage my bellow issue. can u pls help me.. thanks in advance.

"aa" field is empty, "bb" field also empty

"aa" field have some value then "bb" field value = "cc" field value

This topic has been closed for replies.
Correct answer try67

Enter this code as the custom calculation script of "bb":

event.value = (this.getField("aa").valueAsString=="") ? "" : this.getField("cc").valueAsString;

1 reply

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
March 14, 2018

Enter this code as the custom calculation script of "bb":

event.value = (this.getField("aa").valueAsString=="") ? "" : this.getField("cc").valueAsString;

omanbuxAuthor
Known Participant
March 14, 2018

always amazing support form try67. thanks a lot..