Using LiveCycle Designer ES4, I have created variable functions in JavaScript that I call in field events. These functions work correctly in Adobe 11. However, when tested in Acrobat Reader DC, these functions no longer work. If I move the script from the function into the field event, the script works. However, I do not want to stop using variables. Many of these variables are long and used in many fields. Does anyone have a fix for this issue?
Below is an example of one of the JavaScript variable functions currently being used in Adobe 11:
form1.#variables.EnterFieldFC - (JavaScript, client)
function EnterFieldFC(oField)
{
oField.border.edge.presence = "visible"
Field.border.edge.color.value = "255,0,0"
Field.borderWidth = "1.5";
}
Below is the call in the Enter field event:
EnterFieldFC.EnterFieldFC(this);
When the JavaScript Debugger is enabled in Acrobat Reader DC, an error message is displayed on entering the field stating that the function EnterFieldFC is unknown.