number
for numeric values, string
for text). Field types cover categories like numbers, text, dates, and times.
string
type. For example, below, we create a field for collecting email addresses:
string
type.
However, if we update the “Email address” field to use the email
type, that field gains the advantage of Dromo’s built-in email address validation:
💡 Click to learn more about Presets
number
, date
, time
, and datetime
formats. Presets work by automatically filling preset values into the configuration options for a field type.You can manually configure the options for a number type:number
field parses, validates, displays, and outputs values in dollars. Therefore, if a user attempts to insert a value that can’t be parsed into USD (i.e., another currency), Dromo throws a validation error:
outputFormat
configuration option enables you to do so. For example, if you want to convert a number into USD, you can use the “usd” preset alongside an outputFormat
option.