Start page
Start page

Start page / Template development / Rules / Restriction levels / <ON_RELEASE/> tag

Restriction level <ON_RELEASE/> (inhibit release)

ON_RELEASE: error message at the attempt to release an invalid entry

Rules based on this restriction level permit the saving of invalid form content by the editor, but a release and thus an assumption of the invalid content in the live state are inhibited.

This restriction level thus represents a weakened intervention into the editorial process. In the working area, the editor is informed about the rule violation during entry already (see Display in the working area) and can correct this violation before the (form) content is saved. At release at the latests, invalid content must be corrected however, otherwise the release terminates with an error message.

For general information regarding the definition of a restriction level, see Controlling editorial processes (restriction levels).

Examples

Example: inhibiting a release when the entry exceeds a certain number of characters

Dynamic form with violated ON_RELEASE rule

For the “lt_text” input component, entries over 50 characters should be inhibited. For this case, the restriction level <ON_RELEASE/> can be assigned by the template developer. As soon as the condition (number of characters in the input component “pt_headline” does not lie over 50 characters) defined in the value determination is not fulfilled, the input component is marked by the FirstSpirit framework and a correction note appears underneath the input component. If the editor now tries to release the form in this invalid state, an error message will appear and the release of the form will be inhibited.

<RULES>

<ON_RELEASE>
<WITH>
<NOT>
<GREATER_THAN>
<PROPERTY source="pt_headline" name="length"/>
<NUMBER>50</NUMBER>
</GREATER_THAN>
</NOT>
</WITH>
<DO>
<VALIDATION>
<PROPERTY source="pt_headline" name="VALID"/>
<MESSAGE lang="*" text="Only 50 characters allowed!"/>
<MESSAGE lang="DE" text="Es sind nur 50 Zeichen zugelassen!"/>
</VALIDATION>
</DO>
</ON_RELEASE>

</RULES>

© 2005 - 2015 e-Spirit AG | All rights reserved. | Last change: 2013-12-09