Create an update and a create with the same form

Hello,

I’m trying to create a easy admin panel to create rows in my DB. I’m trying to have the same form to update / create a row in my db.

Best behavior:
By default, the form is in create mode, when i click on a line in my table, fill the form (the form turn to update mode).

I think about a workaround

is it possible ?

Yes you can achieve that, Just set the firm to be filled from the selected row on the table.
then use two buttons, one to update by the selected ID. and the other button to create a new record.

1 Like