Changing field type in form | Community
Skip to main content
New Participant
April 3, 2023
Solved

Changing field type in form

  • April 3, 2023
  • 1 reply
  • 1342 views

How would the data received be affected if I used a different field type in a form than what the default is? For example, changing a date field to a string field, or a boolean field to a text box.  Does this have any back-end implications or will it just accept the data and only mess with the operators?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SanfordWhiteman

All form values are sent as strings regardless of the input type (this is true of standard HTML forms as well).

 

So as long as the value can be safely coerced to the datatype within the Marketo db — for example, Date fields must be formatted yyyy-MM-dd — it doesn’t matter what you use on the form.

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
April 3, 2023

All form values are sent as strings regardless of the input type (this is true of standard HTML forms as well).

 

So as long as the value can be safely coerced to the datatype within the Marketo db — for example, Date fields must be formatted yyyy-MM-dd — it doesn’t matter what you use on the form.