Hide inputs for a component dynamically

Hi @mossen ,

You can use showIf on the input to dynamically show and hide it. Here is a link to the type definition and here is a link to an example of how it is used.

The options object that is passed to the showIf function is a map of the current options set on the component. Hopefully you are able to accomplish what you need with that. If that does not work and you need access to the parent of the current component, the update we have planned to fix this issue for you: Get parent block in Builder.registerComponent - #6 by korey will also fix this!

1 Like