Adding a form page

A form page appears as follows, and is the result of clicking on a page in the main menu:

You will require the following JSON template to add a form page (in the example above, the page is labelled “Request” under the “Annual Leave” submenu):

{
"title":"Request",
"action":"form",
"form_ref":"SSSANLERE",
"submit_button_text":"Submit",
"message_submit_ok":"Submission Successful",
"message_submit_error":" Sorry, there was a problem encountered.",
"field_caption_width":"20"
}

The purpose of each JSON entry is described in the table below:

Name Description
Title This is the title of the page as it appears on the portal
Action The action must be set to “form” to add a page with a form
Form_ref This is the unique reference code of the form, as it appears in the form builder
Submit_button_text This is the text displayed on the submit button for update forms
Message_submit_ok This is the message that appears to the user when the data entered is submitted successfully
Message_submit_error This is the message that appears to the user when there is an error on attempting to submit the data
Field_caption_width This will ensure that that both the field and caption on displayed on the same line. The value is a number and determines the percentage of the form width, that the caption is assigned