Copy Visibility from Component

It would be incredibly useful to be able to right click on a component and copy just the visibility rule(s) set to it and then right click and paste it on to another component that needs the same rule.

Use Case: I have a form container for parents to apply for transfer to our school. The form gathers basic info and documents, then asks for info specific to each child. If they have more than one child to add, an option at the end of each kid’s section says “Add Child”. If selected, this displays another set of questions for the next child and can be repeated up to 8 kids. Each child’s question set may consist of 30ish components which means 240ish components overall just for child info components. Since it is in a form container, the question sets can’t be grouped in another container with one visibility rule applied to the container and instead require the same visibility rule to be applied to each of those 30ish component question sets which takes a LONG time.

It would be much easier to either (A) copy and paste visibility rules, or (B) be able to make a container in a container as a “sub-container”, or (C) create a new component called something like “Group” that acts a sub-container to a normal container or form container.

1 Like

I use containers specifically to group components and set visibility conditions to all components of that container. The visibility conditions are therefore set at the container level.

Containers also happen to be practical if you need to change the layout of the screen quickly.

Basically I rarely have components floating around, all components live inside a container even if I do not apply any configuration to it. If anything, naming the container allows me to scroll down the list of components and see what is what.

It would be practical if containers could be collapsed.

I still think your feature request is a good idea, since containers or components with the same visibility conditions could be scattered around. Voted +1.

2 Likes

I typically use containers all over the place too, but in form containers if I want certain sets of questions to appear only if they answer previous questions a certain way then I’m stuck making a visibility rule for each individual component I want to react that way since we can’t add a normal container to the form container to group the dynamic question sets.

1 Like

I see. The form container could be called something else, like an inline form. The form container and container component don’t act the same nor have the same purpose, yet they are named similarly which is confusing, but that is a separate discussion :slightly_smiling_face: