Is it possible to hide entire tabs using conditions? #1106
Replies: 2 comments 8 replies
-
@cowlikeobject You are correct this feature is not supported. But I believe it is something we could implement. However, you would have to be very careful about clearing the child fields values or re-initializing them. I am going to think about this a bit more today and see what might be the best possible approach. One question. What component mapper are you targeting? |
Beta Was this translation helpful? Give feedback.
-
Okay, so I am a total newbie to all this and react, but after banging my head on the wall so much today, I finally got something that I think works. As you mentioned, I used parse condition and formspy. I copied the pf4 mapper and added some stuff to it. I'll just share it here I guess. Also, I just want to mention: in my main schema I had set clearOnUnmount to true, but I noticed for my other 'normal' tabs, they would still keep their values when I clicked between my tabs which makes sense. However, this new tab component I created would clear all the values when I clicked between them so I had to put formOptions.clearOnUnmount = false See code here:
|
Beta Was this translation helpful? Give feedback.
-
Just wondering if its possible to hide entire tabs using conditions? For example, I would have expected this to work, but it doesn't.
Beta Was this translation helpful? Give feedback.
All reactions