remix-validated-form icon indicating copy to clipboard operation
remix-validated-form copied to clipboard

[Feature]: Support setFieldValue on useFormContext

Open cjoecker opened this issue 10 months ago • 0 comments

What is the new or updated feature that you are suggesting?

I would like to have a setFieldValue(fieldName:string) in the useFormContext hook.

Right now, I only have useControlField to set a field value programmatically.

Why should this feature be included?

I'm doing an API call on the client and want to set many field values programmatically. I don't see an option to replace many field values at once.

cjoecker avatar Mar 27 '24 16:03 cjoecker