Wiki source code of HTML


Hide last authors
sas 1.1 1 {{content/}}
2
rpe 14.1 3 HTML templates are used by [[actions>>doc:Formcycle.Designer.Workflow.Actions.WebHome]] of type [[response page>>doc:Formcycle.Designer.Workflow.Actions.HtmlResponsePage]] and can be displayed to the user after a form has been submitted.
sas 1.1 4
rpe 14.1 5 Initially several system templates are available, which are created automatically when a new client is created. They cannot be deleted. See also [[error messages>>doc:Formcycle.SystemSettings.ErrorMessageTemplates]].
sas 1.1 6
rpe 14.1 7 HTML system templates are mainly used for system messages such as informing the user about error during login etc. Their content can be changed as required. It is also possible to use placeholders within the response page, these can be [[form placeholders>>doc:Formcycle.UserInterface.Variables||anchor="sec_form_placeholder" target="_blank"]] or [[system placeholders>>doc:Formcycle.UserInterface.Variables||anchor="sec_system_placeholder_html" target="_blank"]] offer for example an attachment of a process as download.
sas 1.1 8
rpe 14.1 9 {{figure float="right" image="1_en_TemplatesHTML.png" width="300"}}{{/figure}}
sas 1.1 10
rpe 14.1 11 == Available templates ==
sas 1.1 12
rpe 14.1 13 The following system templates are available.
sas 1.1 14
rpe 14.1 15 * **Authentication failed**
16 The login was not successful.
sas 1.1 17
rpe 14.1 18 * **Authorization failed**
19 The authorization was not successful.
sas 1.1 20
rpe 14.1 21 * **Authorization required**
22 If the requested form is verified and the current user is not signed in, this text block will be displayed.
sas 1.1 23
rpe 14.1 24 * **Bad Request**
25 A wrong data type or a faulty request was sent to the server.
sas 1.1 26
rpe 14.1 27 * **BOT detected**
28 An attempt was made to send data illegal (e.g. trough automated bots).
sas 1.1 29
rpe 14.1 30 * **Data not found**
31 The requested data set could not be found. This crops up, when you try to open an established process with the wrong process ID.
sas 1.1 32
rpe 14.1 33 * **Double opt-in email sent**
34 The form data has been successfully submitted and an e-mail with the opt-in confirmation link will be sent.
sas 1.1 35
rpe 14.1 36 * **Double opt-in verification failed**
37 The opt-in was not successful (e.g. because the opt-in link was not called within the specified time period).
sas 1.1 38
rpe 14.1 39 * **Double opt-in verification successful**
40 The opt-in was successful.
sas 1.1 41
rpe 14.1 42 * **File upload size exceeded**
43 The files sent by the user exceed the maximum allowed total size.
sas 1.1 44
rpe 14.1 45 * **General Error**
46 Possible error message while opening or sending the form.
sas 1.1 47
rpe 14.1 48 * **Information**
49 Contains the information of the system, which are gained via the button //information//.
sas 1.1 50
rpe 14.1 51 * **Invalid Data**
52 The sent form data are invalid. Wrong form data were sent to the server.
sas 1.1 53
rpe 14.1 54 * **Invalid double-POST**
55 The form data sent is invalid because it has already been sent to the server.
sas 1.1 56
rpe 14.1 57 * **One time submission error**
58 The form data could not be submitted because the field defined as the unique identifier has the same value as in an already received form (e.g. the same e-mail address is used).
sas 1.1 59
rpe 14.1 60 * **Participation password or login required**
61 To access the form, entering a password or logging in as a user is required.
sas 1.1 62
rpe 14.1 63 * **Participation password required**
64 A password must be entered to access the form.
sas 1.1 65
rpe 14.1 66 * **Resource not found**
67 The requested resources could not be found, possibly because of a wrong or incomplete link.
sas 1.1 68
rpe 14.1 69 * **Resource offline**
70 The requested resource is not online (yet).
sas 1.1 71
rpe 14.1 72 * **Sending Failed**
73 The form data could not be submitted.
sas 1.1 74
rpe 14.1 75 * **Submission successful**
76 The form data was submitted successfully.
sas 1.1 77
rpe 14.1 78 == Resetting templates ==
sas 1.1 79
rpe 14.1 80 System templates can be reset to their initial content by clicking on the corresponding //Reset// button. All changes will be lost!
sas 1.1 81
rpe 14.1 82 == Internationalization of HTML templates ==
83
84 {{figure float="right" image="2_en_InternationalizationHTML.png" width="300"}}
85 The //Source// button opens the editor. The contents of the templates for the individual languages are defined in separate elements with a lang attribute with the abbreviation of the language as value.
sas 1.1 86 {{/figure}}
87
rpe 14.1 88 The system templates contain an English and a German version of the corresponding message as standard. Internationalization is achieved using //lang// attributes attached to certain HTML elements.
sas 1.1 89
rpe 14.1 90 After selecting one of the existing end pages, you can view its structure by clicking on the //Source// button. In the editor window that opens you can see that the individual languages are always available in a separate {{code language="none"}}<div>{{/code}} element with the language as attribute (e.g. {{code language="none"}}<div lang="en">{{/code}}). More languages can be easily added by adding another {{code language="none"}}<div>{{/code}}- element with the corresponding language abbreviation in the //lang// attribute on the same level as the existing languages and then inserting the desired content for that language into it.
sas 1.1 91
rpe 14.1 92 Note that the entire content of the template will be displayed if the language used to submit a form does not match any of the defined languages.