Copy link to clipboard
Copied
James Farlow Apr 2, 2018 5:52 AM (in response to try67)
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);
}
}
Copy link to clipboard
Copied
James Farlow Apr 2, 2018 5:52 AM (in response to try67)
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);
}
}
Copy link to clipboard
Copied
This is a duplicate of the answered post I created from that has form templates. I want to use JavaScript to control user entries but I don't...