You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A common issue, or a feature if you would, on many different forms is to keep track of the field values and only enable Save or some other CTA button if the values have changed since the form initialization.
Proposed
Consider returning an additional isDirty or isChanged property that would indicate if the value changed from its initial (default) value.
Also consider giving an option to the user to override this default value after validation initialization because most of the time we create inputs using empty strings and then once we fetch data, trigger the change manually.
The text was updated successfully, but these errors were encountered:
DorijanH
changed the title
[Poposition] isDirty or isChanged property
[Proposition] isDirty or isChanged property
Dec 1, 2023
Also consider giving an option to the user to override this default value after validation initialization because most of the time we create inputs using empty strings and then once we fetch data, trigger the change manually.
Calling field.setValue(value) on validationField or setValues(formData, values) that are made just for that purpose will leave IsDirty flag unchecked (if we end up exposing it).
Issue
A common issue, or a feature if you would, on many different forms is to keep track of the field values and only enable
Save
or some other CTA button if the values have changed since the form initialization.Proposed
Consider returning an additional
isDirty
orisChanged
property that would indicate if the value changed from its initial (default) value.Also consider giving an option to the user to override this default value after validation initialization because most of the time we create inputs using empty strings and then once we fetch data, trigger the change manually.
The text was updated successfully, but these errors were encountered: