Forum Academy Marketplace Showcase Pricing Features

How can I limit length of a text on database?

I would like to set a limit (max length) for text field of a certain type of data to prevent database from having too large size of text data. It’s possible to set a validation on client-side (ex. input form setting) but it can be deleted on web browser’s dev-tool if someone intended to so it is not really a solution. Setting a condition on workflow can be a way but I have to set it to every database operating action one by one so it might works but not efficient. Is there any common way?


Welcome to the Bubble Forum!

As you mentioned you can limit in the input element and also in the workflow.

The other way, I believe you can reach what you want using :truncate to when saving in the database:

I hope this helps!

1 Like