Skip to main content
JimFarlow
Participant
April 2, 2018
Question

JavaScript with Form Templates

  • April 2, 2018
  • 1 reply
  • 251 views

Thanks Try67, your last post help a lot. I have one more question. Keep in mind that this template page can appear on any page. I have a button "P3.CA PG 1 TEMP.addRCCode" that call this function  "addRCCode". The function pulls the value from this field "RCCodeMenu" and puts it in this field "RCCodeText". Is there a way to call these fields using just the last part of the fields name (Example ".RCCodeText")? I am sorry for being a Nuisance. Thanks again Try67.

function addRCCode()
{
var r = this.getField("RCCodeMenu").value;
var s = this.getField("RCCodeText");
var stext = this.getField("RCCodeText").value;

if (stext == ""){
  s.value = (stext + r);
}
if (stext != ""){
  s.value = (stext + " , " +  r);
}

}

This topic has been closed for replies.

1 reply

Inspiring
April 2, 2018