airjp73/rvf

[Feature]: Support setFieldValue on useFormContext

cjoecker opened this issue · 1 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.

This feature is present in v6 which is being released today. 🎉