1
0
-1

Hi,

we have a form that has some sections that have show if... rules.

However, when the section is not visible it is still included in the layout (because it has padding and/or borders). Composer had some flags to use for "exclude from layout if caption blank".

Does Maestro have a similar option?

If not, I think that the Dynamic Class rule might be suitable. So, I am wondering if I can use dynamic class to add a class to the component when it is hidden, so that it is excluded from the layout (display: none;).

Is this a workable solution?

How do I implement this?

Thanks

    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      Hi Mark,

      Are you putting your visibility rule on the Section object itself?

      I've included a Section with borders and padding in a test form and hidden it with a visibility rule, and it doesn't affect the layout.

      Bill

      1. Ben Warner

        Agree, the Show if rule should not leave anything in the layout when it is not visible.

      2. Mark Murray

        Hi Bill,

        thanks for the comment. That is the behaviour that I was expecting.

        I have investigated a bit further to understand the form structure (I didn't build all of the form) and have found that there is a block inside the section. So the visibility rules have not been applied correctly based on the structure. I think the form has been through a few changes and there has been some loss of detail along the way (too many cooks...).

        Now that I have confirmation of the expected behaviour and a better understanding of the form structure I can arrange things correctly to achieve the desired outcome.

        Your comments, and Ben's comment made me think more broadly.

        Thanks

        Mark

      CommentAdd your comment...