Skip to content

Can we hide the next tab based on the value of a field from previous tab? #25

Closed Answered by manojadams
venkatesh1146 asked this question in Q&A
Discussion options

You must be logged in to vote

To refer to fields in other tab's/section, you can use the key section.

Check updated docs here:
https://mui-forms.vercel.app/field-dependencies/exists

For example:

dependencies: {
  exists: {
    section: "basic_details", // this refers to fields in other tab/group of the form
    ref: "countries",
    value: "IN"
  }
}

Replies: 1 comment 4 replies

Comment options

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

@manojadams
Comment options

@venkatesh1146
Comment options

@manojadams
Comment options

Answer selected by venkateshpullaganti
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants