/
error_message.html
42 lines (36 loc) · 1.52 KB
/
error_message.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
layout: default
navPage: docs
heading: Form Builder
breadcrumbs:
- Modules,/modules
- Form Builder,/modules/form_builder
- Customization,/modules/form_builder/customization
- Anatomy of a Template Set,/modules/form_builder/customization/anatomy
- Template Types,/modules/form_builder/customization/anatomy/template_types
- Error Message
prev: Navigation,/modules/form_builder/customization/anatomy/navigation/
next: Resources,/modules/form_builder/customization/anatomy/resources/
categories: modules
---
{% include open_section.html nav='fb_nav_customization.html' selected='error_message' %}
<h3>Error Message</h3>
<p>
The Error Message template is used to display any errors that occur when a form
submission fails server-side validation. For the majority of users, if a field contains
field validation and they fail to enter the value properly, a dialog window will
appear containing the error message(s). However, for people with browsers that have
javascript disabled, the errors will be caught on the server (* N.B. At the current
version, not all client-side code has corresponding server-side validation. Read the
section on <a href="?page=validation">Field Validation</a> for more information.
</p>
<p>
Here's a typical example for the content of this Template Type.
</p>
{% raw %}
<textarea class="codemirror" data-lang="smarty2">
{{if $validation_error}}
<div class="fb_error">{{$validation_error}}</div>
{{/if}}</textarea>
{% endraw %}
{% include close_section.html %}