phpatk4agiletoolkit

Remove 'Changes on the form will be lost' message atk4


I have a page with two components. One of them is a form that shows data fields from a model. The other component has a button that reloads the form with another id of the model associated.

How can I disable the warning message of unsaved changes for that model?


Solution

  • It was very simple!

    $form->addClass("ignore_changes");