Zum Hauptinhalt gehen

With validation error user can save and edit the page

Kommentare

1 Kommentar

  • Zendesk API User
    Author: hoebbel - 9/14/2021 14:58

    Dear Siva,

    based on your description, I assume that the cause of the problem is that validation is not applied when there are no changes to the page.

    You can see this because the save icon is not active, as in this screenshot:

    Solution: you need to make sure that there is a change to the page. The easiest way to do define a hidden input component and fill it with a rule onlock. Every time a page with this construct is edited afterwards for the first time, there is an automatic change and saving is not possible.

    However, in this case the user can still cancel the editing, which is probably also not desired. But I don't have a solution for that.

    Example:

    Input Component:

    <CMS_INPUT_TEXT name="pt_forceChange" hidden="true" label="just used to force a change of the page"/>

    Rule:

    <RULE when="onlock">

    <WITH>

    <TEXT>changed</TEXT>

    </WITH>

    <DO>

    <PROPERTY name="VALUE" source="pt_forceChange"/>

    </DO>

    </RULE>

    best regards

    Holger

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.