Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

date field patterns and barcodes

Avatar

Level 4

I have a date field that is mapped to a barcode.  the date field has a pattern > Data of date {YYYYMMDD} because the target system requires it without the dashes. datefieldPattern.JPG

However when the barcode generates it always encodes YYYY-MM-DD (ie. WITH THE DASHES). 

If i do a xfa.host.messageBox (this.rawValue) it always displays the YYYY-MM-DD. 

If I call the this.formattedValue it does return YYYYMMDD.

To fix this i created a hidden field which i wrote to on the exit of the datefield and mapped this hidden field to the barcode.

     hiddenField.rawValue = this.formattedValue

Is there a better way to do this without the hidden fields?  I ask since i have a bunch of date fields..

How/where do i change the pre-generated barcode code to grab the formattedValue instead of the rawValue if its a datetimefield?

0 Replies