Skip to main content
← Data, API & Backend
Data, API & Backend April 10, 2022 · 5 replies

Is it possible for the form to define which input is optional?

Archived from the Bravo community forum (2021–2026). Some answers may refer to older versions of Bravo.

Right now (as I know) form filled in bravo needs every input (in that form) to be filled. So if some information is left blank, It will state as an error.

Is there any way to set some input data to optional?

5 replies

Alberto Manzano Bravo team April 12, 2022

Hello ! It should be the opposite: all inputs are optional by default. If you append :required to an input field, it will become mandatory (this feature is not documented yet)

Kingtian April 13, 2022

Then why, for my project, is every field required by default. If I didn't fill all the input in the form, it would state an error? (I use PATCH Request)

Alberto Manzano Bravo team April 13, 2022

It must be your PATCH request who is requiring those fields

Alberto Manzano Bravo team May 13, 2022

it has to be something with your PATCH request; we would need more info about the call you are making in order to be able to help you

Wrote something in this thread and want it removed? Request removal

Still stuck?

Ask the community on Discord

This archive is read-only. New questions, office hours and product updates now happen in the Bravo Discord.

Join the Discord