Submit only changed values
I have an update form that is prepopulated with existing values as the default. When submitting, I'd like to only take the values that are not equal to the default.
Right now the only way I see is to use the formApi object in the submit handler and manually check the isDefaultValue state of each field and build up the desired object.
Is there a cleaner way to strip away all values that have not been changed from default?
1 Reply
eastern-cyan•2mo ago
I just created my own utility function that takes the existing object and the value returned by the form and strips out matching properties.