XDP JavaScript validate text field with leading zero value issue in FR
I have encountered an issue with JavaScript and showing or hiding a text box.
All works as expected in EN but not in FR. The value received in EN is "$0" and the one in FR is "0 $".
I am beginning to suspect this may be a bug with a leading zero in a floating text field.
Why would it work in EN as per:
if (this.rawValue != "$0"){
xfa.resolveNode("COC.Body.sfBeneLimit.txtBeneLimit").presence = "hidden";
xfa.resolveNode("COC.Body.sfBeneLimit.txtBeneLimitClause").presence = "visible";
}
But not in FR as per, the value received is correct:
if (this.rawValue != "0 $"){
xfa.resolveNode("COC.Body.sfBeneLimit.txtBeneLimit").presence = "hidden";
xfa.resolveNode("COC.Body.sfBeneLimit.txtBeneLimitClause").presence = "visible";
}
Any suggestions on alternate coding to check for 1st character being a zero might work, please suggest the code.
Does anyone know if this is a known issue? Has anyone encountered this before? Is there a better solution which I can test?
Thank you