|When users enter a date into a form field that displays as MM/DD/YYYY the data encoded into the 2D barcode appears as YYYY-MM-DD. How can I ensure data is encoded in the right format?|
The automatically generated script that includes fields in a 2D barcode uses the “node.value” which will capture the XML formatted value. In the Calculate code you’ll see this as “fieldValues.push(node.value);”. To use the formatted values you can remark out the original code and replace it with:
This will use the formatted values you provided in the Validation Pattern.