Input auto-binding wuth initial content


Is it possible to enable auto-binding and have an initial content ?

My case :

I have a form where we can set a price. But I want to have a fix price that only the admin can change.

Thank you

Auto binding, by definition, always has initial content (it’s bound directly to the database item). It’s not called initial content, as it’s content is the field from the database.

1 Like

And how can I have an initial content on the green case ?

Thank you

What’s a green case?

The input on the right called “Tarif par personne”.

You can set initial content on any input element you like… but you don’t need to set it if you’re using autobinding.