Quantcast
Channel: Adobe Community : Popular Discussions - LiveCycle Barcoded Forms
Viewing all articles
Browse latest Browse all 15504

date field patterns and barcodes

$
0
0

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?


Viewing all articles
Browse latest Browse all 15504

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>