Skip to content

Visibility logic #1270

Answered by juanvilladev
sbc640964 asked this question in Ideas
Mar 12, 2025 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

You could build this into your subfields when building your composable fields. You could add an extra prop for is visible then within the subcomponent render null when not visible.

Take a look at my Full Name field definition in this example:
https://stackblitz.com/edit/tanstack-form-dowbrasw?file=src%2Ffeatures%2Fpeople%2Fpage.tsx

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sbc640964
Comment options

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