Documentation

isDirty

checks whether changes within form were made

boolean isDirty();

Returns

booleanreturns **true** if the data was changed

See also

Example

if(form.isDirty()){
        if(!form.validate())
            return false;
        form.save();
    }
 };

Details

With form, the method is used before data validation and saving it to the component and server.

Back to top