The plugin supports four positions for displaying validation error message (After label, Before label, After item, Before item).
In Oracle APEX Universal Theme default position is After item.
If you want to use positions After label, Before label or Before item you have to create new label templates (check section Label templates for cheat sheet).
Examples of all configured positions are presented below.
Each APEX item has proper label template (definitions in section Label templates).
Validation results after submit and validation results after executing the plugin are presented at the same spot. Just test it!
#ERROR_MESSAGE#
#ERROR_MESSAGE#
|
Custom Label templates used in examples above are presented in sections below. All template attributes are available to edit in Shared Components > Templates > Edit Label Template > Definition section
Note that additional CSS styles is used.
CSS styles can be placed in Universal Theme page template or in page attribute "CSS > Inline".
.labelOnError > .t-Form-labelContainer > .t-Form-error,
.t-Form-labelContainer > .t-Form-error.forceDisplay {
display: block;
}
.t-Form-labelContainer > .t-Form-error {
display: none;
}
Shared Components > Templates > Edit Label Template > Definition
-
Template name
-
Optional - after item
-
Error template
-
<span class="t-Form-error">#ERROR_MESSAGE#</span>
-
Before label
-
<div class="t-Form-labelContainer col col-#LABEL_COLUMN_SPAN_NUMBER#">
<label for="#CURRENT_ITEM_NAME#" id="#LABEL_ID#" class="t-Form-label">
-
After label
-
</label>
</div>
-
Before Label and Item
-
<div class="t-Form-fieldContainer rel-col #ITEM_CSS_CLASSES#" id="#CURRENT_ITEM_CONTAINER_ID#">
-
After Label and Item
-
</div>
-
On error before label
-
-
-
On error after label
-
-
-
Before item
-
<div class="t-Form-inputContainer col col-#ITEM_COLUMN_SPAN_NUMBER#">
-
After item
-
#ERROR_TEMPLATE##HELP_TEMPLATE#</div>
Shared Components > Templates > Edit Label Template > Definition
-
Template name
-
Optional - before item
-
Error template
-
<span class="t-Form-error">#ERROR_MESSAGE#</span>
-
Before label
-
<div class="t-Form-labelContainer col col-#LABEL_COLUMN_SPAN_NUMBER#">
<label for="#CURRENT_ITEM_NAME#" id="#LABEL_ID#" class="t-Form-label">
-
After label
-
</label>
</div>
-
Before Label and Item
-
<div class="t-Form-fieldContainer rel-col #ITEM_CSS_CLASSES#" id="#CURRENT_ITEM_CONTAINER_ID#">
-
After Label and Item
-
</div>
-
On error before label
-
-
-
On error after label
-
-
-
Before item
-
<div class="t-Form-inputContainer col col-#ITEM_COLUMN_SPAN_NUMBER#">
#ERROR_TEMPLATE#
-
After item
-
#HELP_TEMPLATE#</div>
Shared Components > Templates > Edit Label Template > Definition
-
Template name
-
Optional - before label
-
Error template
-
<span class="t-Form-error">#ERROR_MESSAGE#</span>
-
Before label
-
<div class="t-Form-labelContainer col col-#LABEL_COLUMN_SPAN_NUMBER#">
<span class="t-Form-error">#ERROR_MESSAGE#</span>
<label for="#CURRENT_ITEM_NAME#" id="#LABEL_ID#" class="t-Form-label">
-
After label
-
</label>
</div>
-
Before Label and Item
-
<div class="t-Form-fieldContainer rel-col #ITEM_CSS_CLASSES#" id="#CURRENT_ITEM_CONTAINER_ID#">
-
After Label and Item
-
</div>
-
On error before label
-
<div class="labelOnError">
-
On error after label
-
</div>
-
Before item
-
<div class="t-Form-inputContainer col col-#ITEM_COLUMN_SPAN_NUMBER#">
-
After item
-
#HELP_TEMPLATE#</div>
Shared Components > Templates > Edit Label Template > Definition
-
Template name
-
Optional - after label
-
Error template
-
<span class="t-Form-error">#ERROR_MESSAGE#</span>
-
Before label
-
<div class="t-Form-labelContainer col col-#LABEL_COLUMN_SPAN_NUMBER#">
<label for="#CURRENT_ITEM_NAME#" id="#LABEL_ID#" class="t-Form-label">
-
After label
-
</label>
<span class="t-Form-error">#ERROR_MESSAGE#</span>
</div>
-
Before Label and Item
-
<div class="t-Form-fieldContainer rel-col #ITEM_CSS_CLASSES#" id="#CURRENT_ITEM_CONTAINER_ID#">
-
After Label and Item
-
</div>
-
On error before label
-
<div class="labelOnError">
-
On error after label
-
</div>
-
Before item
-
<div class="t-Form-inputContainer col col-#ITEM_COLUMN_SPAN_NUMBER#">
-
After item
-
#HELP_TEMPLATE#</div>