SOLVED

Re: Changing field type in form

Go to solution
Max_Garrett
Level 2 - Champion

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?

1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

Re: Changing field type in form

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.

View solution in original post

1 REPLY 1
SanfordWhiteman
Level 10 - Community Moderator

Re: Changing field type in form

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.