Smart-IT-Kirkham / OpusVL-FB11

Business and Social Application Framework
http://flexibase.io
Other
1 stars 2 forks source link

Disable, rather than deleting, repeatable fields #50

Open Altreus opened 5 years ago

Altreus commented 5 years ago

fb11-repeatable.js sets up a button on each repeatable field in order to remove that field. This is currently done by just removing the whole lot from the DOM.

It would be better to disable the field so that it is not submitted with the form, and for the button to be a toggle or a checkbox, so that it the decision to delete is not immediately committed.