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
Inside the new react-hook-form ValidatedField component (react jhipster), there is a line that says -
" For complex use cases or for nested children, use Reactstrap form elements
or ValidatedField or ValidatedInput and pass methods and values from react-hook-form's useForm hook"
However, there is no mention of which methods/values to pass and I am struggled to nest ValidatedField, which seems a pretty basic use case. Could you add some more clarity to the comments to tell me which I would need for the validation to work in a nested case (just a basic example of required is maybe all that is needed).
Motivation for or Use Case
I would like my form to be populated by a js object rather than having endless ValidatedField components.
Related issues or PR
I had a look and can't see anything related.
[x ] Checking this box is mandatory (this is just to show you read everything)
The text was updated successfully, but these errors were encountered:
This issue is stale because it has been open 30 days with no activity.
Our core developers tend to be more verbose on denying. If there is no negative comment, possibly this feature will be accepted.
We are accepting PRs 😃.
Comment or this will be closed in 7 days
It seems that I've just raised a similar issue, this is a very basic feature that was always available in Jhipster, and developers were able to design the form using multiple columns view as needed and now it seems that we are restricted to one row per field only unless we can start using the library features outside of the framework. This simple wrapper is good only if the page has a few fields, however, any web page having more fields needs to rearrange in column view. We can definitely use the library and bypass the Jhipster generated wrapper, however, sample code about workaround of how to pass method and values from react hook form will be helpful for a non-react developer.
the validated field as is is useless in anything but the most basic of cases. Referring to the react-hook-form docs just made me use react-hook-form instead of validatedField and validatedForm. If you're not going to support them, don't use them.
Overview of the feature request
Inside the new react-hook-form ValidatedField component (react jhipster), there is a line that says -
" For complex use cases or for nested children, use Reactstrap form elements
useForm
hook"However, there is no mention of which methods/values to pass and I am struggled to nest ValidatedField, which seems a pretty basic use case. Could you add some more clarity to the comments to tell me which I would need for the validation to work in a nested case (just a basic example of required is maybe all that is needed).
Motivation for or Use Case
I would like my form to be populated by a js object rather than having endless ValidatedField components.
Related issues or PR
I had a look and can't see anything related.
The text was updated successfully, but these errors were encountered: