syedkabeer
I'm new here

How to write the rules for CMS_INPUT_DOM Size

Jump to solution

Hi,

    Please find the attached screen shot and help me out from this issue.

     Thansk in advance.

0 Kudos
1 Solution

Accepted Solutions
mikula
Crownpeak employee

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

View solution in original post

0 Kudos
3 Replies
pavone
I'm new here

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 Kudos
mikula
Crownpeak employee

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 Kudos
sebastianc
Crownpeak employee

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 Kudos