Hello, I am learning about customizing Advance PDF...
# general
m
Hello, I am learning about customizing Advance PDF forms and I am having issues generating a QR Code for a few Items. It works fine for most of the Items, but I am getting an error message with Items like this example STR0526-L=4 - 6" See screenshot bellow. I don't know if it is the space, or the double quotes. • This line gives me that error at Packing Slip printing time. barcode codetype="qrcode" value="${item.item}" height="40" width="40"/ • If I add the "*slip*" to truncate the Item Number and print until the first space, it works, bi it chops the Item. barcode codetype="qrcode" value="${item.item?split(" ")[0]}" height="40" width="40"/ I will appreciate any help. Slack Conversation
j
Can you post the relevant part of your HTML / template?
m
Hi Jen, I just found a solution. Item: STR0526-L=4 - 6" It was a problem with the double quotes. I was using this to generate a QT code
value="${item.item}"
But I am using this now which replaces the double quotes in the text with an ASCII reference
Copy code
value="${item.item?replace('"','"')}"