Aller au contenu principal

Hide <CMS_GROUP> via Rules not working properly

Commentaires

6 commentaires

  • Zendesk API User
    Author: bianca_batsch - 10/15/2020 8:39

    Hi Siva,

    rules are not easy... I solved a similar case in this way:

    Important is, that you have to surround the

    1. <EQUAL> 
    2.                 <PROPERTY name="ENTRY" source="pt_style_selector"/> 
    3.                 <TEXT>Stage_PageStore</TEXT> 
    4.             </EQUAL>

    with <NOT> and then describe the behaviour for the case, when this is true

    HTH Bianca

    0
  • Zendesk API User
    Author: sivaprasad9394 - 10/15/2020 8:55

    Hi Bianca,

    Thank you for your reply and time.

    But it is not solving my problem.

    The out line for the Group label is not removed any case.

    Thanks and Regards,

    Siva

    0
  • Zendesk API User
    Author: bianca_batsch - 10/15/2020 9:04

    For me this is working in this way.

    I just played a little around an it works. Maybe you should surround every formelement separately with <not> for the visibility.

    0
  • Zendesk API User
    Author: sivaprasad9394 - 10/15/2020 9:49

    Hi Biance,

    Thank you for your time and quick reply.

    I have tried the same with adding <NOT> for every component which need to be hidden.

    But it does-not sole the issue.

    <RULES>

        <RULE>

            <WITH>

                <EQUAL>

                    <PROPERTY name="ENTRY" source="pt_style_selector"/>

                    <TEXT>Stage_Image</TEXT>

                </EQUAL>

            </WITH>

            <DO>

                <NOT>

                    <PROPERTY name="VISIBLE" source="#form.pt_page_ref_folder"/>

                </NOT>

                <NOT>

                    <PROPERTY name="VISIBLE" source="#form.pt_page_store"/>

                </NOT>

                <NOT>

                    <PROPERTY name="VISIBLE" source="st_template_selector"/>

                </NOT>

                <NOT>

                    <PROPERTY name="VISIBLE" source="st_ref"/>

                </NOT>

                <NOT>

                    <PROPERTY name="VISIBLE" source="pt_folder"/>

                </NOT>

            </DO>

        </RULE>

        <RULE>

            <WITH>

                <EQUAL>

                    <PROPERTY name="ENTRY" source="pt_style_selector"/>

                    <TEXT>Stage_PageStore</TEXT>

                </EQUAL>

            </WITH>

            <DO>

                <NOT>

                    <PROPERTY name="VISIBLE" source="#form.pt_media"/>

                </NOT>

                <NOT>

                    <PROPERTY name="VISIBLE" source="teaser_headline"/>

                </NOT>

                <NOT>

                    <PROPERTY name="VISIBLE" source="pt_image"/>

                </NOT>

                <NOT>

                    <PROPERTY name="VISIBLE" source="st_link"/>

                </NOT>

                <NOT>

                    <PROPERTY name="VISIBLE" source="#form.pt_page_ref_folder"/>

                </NOT>

                <NOT>

                    <PROPERTY name="VISIBLE" source="pt_folder"/>

                </NOT>

            </DO>

        </RULE>

        <RULE>

            <WITH>

                <EQUAL>

                    <PROPERTY name="ENTRY" source="pt_style_selector"/>

                    <TEXT>Stage_PageRefFolder</TEXT>

                </EQUAL>

            </WITH>

            <DO>

                <NOT>

                    <PROPERTY name="VISIBLE" source="#form.pt_media"/>

                </NOT>

                <NOT>

                    <PROPERTY name="VISIBLE" source="#form.pt_page_store"/>

                </NOT>

                <NOT>

                    <PROPERTY name="VISIBLE" source="teaser_headline"/>

                </NOT>

                <NOT>

                    <PROPERTY name="VISIBLE" source="pt_image"/>

                </NOT>

                <NOT>

                    <PROPERTY name="VISIBLE" source="st_link"/>

                </NOT>

                <NOT>

                    <PROPERTY name="VISIBLE" source="st_template_selector"/>

                </NOT>

                <NOT>

                    <PROPERTY name="VISIBLE" source="st_ref"/>

                </NOT>

            </DO>

        </RULE>

    </RULES>

    Thanks and Regards,

    Siva

    0
  • Zendesk API User
    Author: bianca_batsch - 10/15/2020 9:53

    you have to put the <WITH> - Statement with including <NOT> - see my Screenshot

    0
  • Zendesk API User
    Author: javier_fernande - 3/3/2022 13:47

    I know it's an old one but I was having the same issue. You just have to add #form to the cms_group name in the rule. 

    For example: 
    <PROPERTY name="VISIBLE" source="#form.cms_group_name"/>

    0

Vous devez vous connecter pour laisser un commentaire.