on 08-30-2023 4:02 AM
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)
}
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.