How to check is the field visible? #1009
Replies: 2 comments 5 replies
-
Hello, thank you!
However, const resolveProps = (hideField) => (props, field, formOptions) => ...
{
component: ...,
name: ...,
hideField: true,
resolveProps: resolveProps(true)
} |
Beta Was this translation helpful? Give feedback.
-
@hovercraft-github Let's circle back a bit. From what I understand (and I may have misunderstood completely) you are looking for a way to tell if a field has been added/removed from a virtual DOM via the condition. For example: [{
name: 'field-a',
}, {
name: 'field-b',
condition: {
when: 'field-a',
is: 'x'
}
}] So you want to know when |
Beta Was this translation helpful? Give feedback.
-
Hi guys,
First of all, thank you for this great work!
I have a question: in my resolveProps function I need a way to detect whether particular field is visible or not,
but it seems that there is no relevant property seen via formOptions.getFieldState or via props argument?
At least the hideField property is not shown here.
Beta Was this translation helpful? Give feedback.
All reactions