Skip to main content

How to write the rules for CMS_INPUT_DOM Size

Comments

3 comments

  • Zendesk API User
    Author: pavone - 7/13/2016 10:10

    Hi,

    if the editor is not allowed to select more than one contact, maybe you can save this contact in a seperate component and not in the CMS_INPUT_DOM.

    Best regards

    Tim

    0
  • Zendesk API User
    Author: mikula - 7/14/2016 11:16

    I'd suggest to use a CMS_INPUT_TEXT field too, as there is only a limitation to (length) for the cms input dom.

    <RULE>

        <WITH>

            <NOT>

                <GREATER_THAN>

                    <PROPERTY source="cs_description" name="LENGTH"/>

                    <NUMBER>1024</NUMBER>

                </GREATER_THAN>

            </NOT>

        </WITH>

        <DO>

            <VALIDATION scope="SAVE">

                <PROPERTY source="cs_description" name="VALID"/>

                <MESSAGE lang="*" text="Only 1,024 characters allowed!"/>

                <MESSAGE lang="DE" text="Es sind nur 1.024 Zeichen zugelassen!"/>

            </VALIDATION>

        </DO>

    </RULE>

    Best regards

    Martin

    0
  • Zendesk API User
    Author: sebastianc - 7/26/2016 10:02

    Hello Syed,

    do you need further help or did Tim's and Martin's reply already help you? If so, it would be great if you marked their reply as "correct answer" so that other community users find the solution easily. If you have

    already found a solution by yourself, it would be very kind of you, if you posted it here.   

    Best regards,

    Sebastian

    0

Please sign in to leave a comment.