Skip to main content
User Group Leader
Apr 3, 2023 9:53 PM UTC
Solved

Changing field type in form

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.
SanfordWhiteman
SanfordWhitemanAccepted solution
User Group Leader
Apr 3, 2023 10:17 PM UTC

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
User Group Leader
SanfordWhitemanUser Group LeaderAccepted solution
User Group Leader
Apr 3, 2023 10:17 PM UTC

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.

Translate