jeudi 28 avril 2022

Symfony form with check box conditional

I want to create a form in symfony with a double checkbox, in mode You approve the privacy policy or you don't approve the privacy policy.

[]I approve the privacy policy [] I do not approve the privacy policy

The doubt that arises is that one of them will be marked dynamically only if the answer to a query is a value a or another (For example a boolean) (So I think it should be relational), in plan: 1 to approve and 0 to not approve, but previously made the query to generate the form.

How can I do it?




Aucun commentaire:

Enregistrer un commentaire