Skip to content

Any way to remove a usefield with Composition Api? #3791

Answered by logaretm
UnTalPeluca asked this question in Q&A
Discussion options

You must be logged in to vote

There isn't a way to do that at the moment since this isn't the recommended way to use useField. It is meant to be used as part of a component that is your custom input.

I'm working on an enhancement for 4.6 where you can generate form models directly and avoid calling useField if you plan to use it in that way.

As a workaround you can experiment with conditional rules with .when on Yup API

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@UnTalPeluca
Comment options

@jdinartejesus
Comment options

@logaretm
Comment options

@jdinartejesus
Comment options

Answer selected by UnTalPeluca
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants