Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

How do I set a data field pattern for HTTP POST?

Avatar

Former Community Member

I have a PDF form that is submitted via HTTP POST (i.e. URL-encoded data).  The form has a date field and the handler needs the date to be formatted as "MM/DD/YYYY".  I've tried setting the field's data (and display, edit, and validation, for good measure) pattern to "date{MM/DD/YYYY}", but the field is always submitted in the format "YYYY-MM-DD".  Can/how do I set the field pattern for HTTP POST?

2 Replies

Avatar

Level 10

Hi,

One workaround I did for a database connection was to assigned a formatted date pattern to a hidden object and pass this through instead of the visible date object. This is FormCalc:

hiddenDate = Format("MM/DD/YYYY", visibleDate)

Hope that helps,

Niall

Assure Dynamics

Avatar

Former Community Member

My form handler can reformat the date, I was just hoping for a more streamlined approach.