Text and numbers
This section covers elements that accept text and numbers as user input
Last updated
This section covers elements that accept text and numbers as user input
Last updated
Text and number inputs allow your users to provide their own text strings and numbers to your application that can then be saved in the database or used in other ways.
There are a few different elements that are useful in various scenarios, and those elements can be set up to handle different kinds of formatting and user experiences.
This is the user manual article on the Input Element which gives an overview of how the element works. If you want the technical reference that describes all the settings for this element, check out the Reference entry:
Reference: Input Element
Input elements are used for single-line plaintext, but they allow you to specify a content format from a wide range of different options. The Field type returned in the list below specifies what kind of database field format the input will return.
Because of the predictive text functionality on Android devices, some content formats involving masks have a slightly different UX. This applies to US Phone, Percentage, Currency, Date, Euro date, and Text (numbers only).
On Android devices, the input allows users to type anything and validates the content against the mask only after the user stops typing.
This does not affect the final data generated by the input.
The input will accept any text value.
Field type returned: text
The input will only accept text values that are formatted like an email address.
Field type returned: text
The input will accept any kind of text value, but the characters written will be replaced by asterisks.
Field type returned: text
The input will only accept any whole number. Use this when you need to collect numerical values that can later be used for calculations (as opposed to numbers saved as text). You can specify a dynamic minimum and maximum value when this option is selected.
Field type returned: number
The input will accept any whole number or decimal number. You can specify a minimum and maximum value, as well as the number of decimals to include. You can also set the input to automatically include thousands separators as the user types. This setting is only aesthetic and does not affect the final value.
Field type returned: number
A geographic address. With this option, the input automatically validates the address with Google Maps. Note that the input does not automatically search for valid addresses as the user types, so the user has to provide an already valid address (by copy/pasting directly from Google Maps for example). If you want the user to be able to see Google Maps search results as they type you may want to look into using the Search box element instead.
Field type returned: address
This input will accept correctly formatted US phone numbers. The value is saved as a text.
Field type returned: text
This input will format the user's input as a percentage and accept input such as 20%. Bubble will automatically save it in the correct numerical equivalent of the provided percentage point. For example, 20% will be saved as the number 0.2 and 150% will be saved as 1.5.
Field type returned: number
The input will accept any whole number or decimal number and it will automatically format the input in the chosen currency, such as $20. You can specify a minimum and maximum value, as well as the number of decimals to include. You can also set the input to automatically include thousands separators as the user types. The currency and thousands separators settings are only aesthetic and do not affect the final value.
Field type returned: number
The input will accept any date, but does not include time. It automatically formats the input's value as mm/dd/yyyy while the user types, guiding the user to provide the date in the right way. You can specify a given time zone for the input and Bubble will automatically calculate any offset from the user's current time zone. If no time zone is provided, the user's current time zone will be used. Dates are saved at 12 am (00:00) on the given date.
Field type returned: date
The input will accept any date, but does not include time. It automatically formats the input's value as dd/mm/yyyy while the user types, guiding the user to provide the date in the right way. You can specify a given time zone for the input and Bubble will automatically calculate any offset from the user's current time zone. If no time zone is provided, the user's current time zone will be used. Dates are saved at 12 am (00:00) on the given date. The difference between this content format and the Date format is purely visual.
Field type returned: date
This input will only accept whole numbers and the result will be saved as text. This is useful when you want to save numerical values that need to remain exactly as the user typed (without losing leading zero's for example) and will not be used for any type of calculation, such as international phone numbers, zip codes and order numbers.
Field type returned: text
As the name suggests, the Multiline input element allows you to set up a text input element that allows for multiple lines of text. Like the regular text input, this element supports plaintext only, and does not provide any custom formatting.
Use the Multiline input element when you need the user to be able to supply multiple lines of text but you don't want them to be able to add formatting such as bold, italic and headers.
Field type returned: text
The Rich Text Editor is a plugin. It's made by Bubble but it needs to be installed in your app before you can use it. Plugin link: Rich text Editor
The Rich Text Editor is another multiline input element that allows users to type a rich formatted text with formatting such as colors, fonts, bullet points and links.
The Rich Text Editor element comes with a setting to give it a more minimalistic design where the toolbar is only visible when you select some text:
You can also choose to show fewer format settings than the ones above. The screenshot shows the full suite of available options.