cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

My requirement is print the barcode with page number and other field values , the page number length should be 2 digits ( ex: 00,01,02..etc) , i added the below logic for page number , i see page number is printing without leading zero , so i added the below code to concatenate the leading zero , but its not working , please review the code and let me know for the correction.

var pagen = xfa.layout.page(Ref($));

var flen = string(pagen).length;

if (flen=1)

{

this.rawValue = concat("0", pagen , "01" , counter)

else

this.rawValue = concat(pagen , "01" , counter)

}

0 Likes

Accepted Solutions (0)

Answers (0)