Hi Team,
The requirement is to use Gujrati Font (Shruti Font) for specific plant. The font works properly for all the plant. please find the JavaScript code below:
this.font.typeface = "Shruti";
As per the requirement I need to add this font for a paticular plant. So I added an IF condition in JavaScript of Adobe form. Please find the code below:
var plant = xfa.resolveNode("data.PageSet.PageFirst.Header.plant.WERKS").rawValue ;
xfa.host.messageBox(plant);
alert("sometext");
xfa.host.messageBox("This is a message", "This is a title", 3, 1);
//var plant1 = xfa.resolveNode("WERKS").rawValue;
if ( plant == "ABCD" );
{
this.font.typeface = "Shruti";
this.font.size = "9pt";
}
After writing the above code, the text is coming as ????. Also I am not getting the alert messages written.
How to check if I am getting a correct value in the PLANT variable and also is the above code syntax correct?