All of the suggestions in this document should help make online forms as useable and accessible as possible.
Note that not all existing live forms will follow these principles so don’t copy them exactly if that is the case. The Lagan forms builder did not offer the functionality that we have with the new Forms Designer so there is also an opportunity to improve the design and usability of these forms.
The Form Designer is regularly being updated and improved so these standards will change over time to reflect new or amended functionality.
Page structure
Optional and mandatory fields
Field labelling
Field prefills and placeholder text
Icons
Name and title
Radio buttons v select list (dropdown)
List fields
Using Fieldsets with Radio buttons and checkboxes
Screenshots showing a checkbox question with border on and a radio button question with no border. Fieldset/Legends are automatically added for you.
Field help text
For example:
Your customer claim number should be on any letter or other correspondence that you have received from us about your claim. It will begin with the number 80. For more information please see our <a href="https://www.oxford.gov.uk/info/20097/report_it_online/382/tell_us_about_a_change_of_circumstances_affecting_your_benefits_claim" target="_blank" rel="noopener noreferrer">Change of circumstances page on our website</a>.
Claim number field with a help block expanded:
The grey text is the help text used as a hint to help the user. The ‘I don’t know my customer claim number’ uses the expanding text control and provides more help for the user but without cluttering up the form. Use these together as in this example.
And collapsed:
Note that the quality of the help text used on the live forms is patchy so don’t always copy what is currently there.
User Guidance or instructions
Location Map control
Make it clear that the user can enter an address or postcode or double click on the map to drop a pin. Could provide some standard text so all forms are consistent.
Postcode / address fields
Date fields
The various calendar picker controls (Date field, Weekday view, Month view) can be used for events close to the present time or if the user needs to know the day as well as the date, be able to compare dates or be able to enter date ranges.
Date picker accessibility and use on a mobile can be problematic so these should be implemented with caution and tested well on a mobile site.
Under development – New date picker field with separate day field / month field / year field and all validated as such.
This new control can be used for memorable dates or known dates and for mobile use.
If you don’t need the exact date and you are asking for dates that users might struggle to remember allow them to enter an approximate date such as January 2020 using a text input field.
Mask controls
Use of branching
Note that some of our existing Lagan forms do have branching so you will have to be careful when re-creating these forms.
Styling options
Suggestions for Confirmation page (page that displays once the user has clicked the submit button and the form has been submitted)
Note that you cannot ‘submit’ a form in live so you will not see what the current confirmation page of the form is showing. These confirmation pages can be added in afterwards so ignore for now.
Create unlimited forms with the Form Designer, a drag-and-drop form builder, choosing the design and content you need.
1. Input Controls
Key | Control | Purpose |
tnotes | Design Notes | |
tinput | Text Input | |
tinput | Text (icon) Input | |
First name | ||
Text Area | ||
Numeric Field | ||
Numeric (icon)Field | ||
Phone Input | ||
Date Field | ||
Weekday View | ||
Month View | ||
Email address | ||
Email (icon) Address | ||
Web Address |
2. Mask Controls
Key | Control | Purpose |
Mask Date | ||
Mask Time | ||
Mask Date Time | ||
Mask Phone | ||
Mask Phone Int | ||
Mask Credit Card | ||
Five Star Rating | ||
Three Star Rating |
3. Dropdown Controls
Key | Control | Purpose |
Title | ||
Gender | ||
Employment Status | ||
Residential Status | ||
Counties | ||
Countries | ||
Select List | ||
Multichoice List | ||
Data List | ||
OCC City Postcode | ||
OCC Wards |
4. Check/Radio Controls
Key | Control | Purpose |
Checkboxes (V) | ||
Checkboxes (H) | ||
Radio Buttons (V) | ||
Radio Buttons (H) | ||
Yes/No Buttons (Horiz) | ||
Yes/No Buttons (Vert) | ||
Toggle Switch | ||
Single Check | ||
Five Options |
5. Button Controls
Key | Control | Purpose |
Upload Files | ||
Linked Button (hyper) | ||
Linked Button (email) | ||
Modal Button | ||
Expanding Button | ||
Submit Button | ||
Print Preview | ||
Button Group | ||
Tag Group |
6. Location Controls
Key | Control | Purpose |
Postcode | ||
Location Map |
7. Style Controls
Key | Control | Purpose |
Legend | ||
Static Text | ||
Alert | ||
Horizontal Line | ||
Vertical Spacing | ||
Inset Text | ||
Update Info | ||
Infocard | ||
Hyperlink | ||
Phone Link | ||
Expanding Text | ||
Expanding Link | ||
Expanding Panel | ||
Links List | ||
Ordered List | ||
Unordered List | ||
Quote Text |
8. Media Controls
Key | Control | Purpose |
MP4 Video | ||
YouTube Video | ||
Modal Video | ||
MP3 Audio | ||
Quote Block Left | ||
Quote Block Right | ||
Quote Block Full |
9. Block Controls
Key | Control | Purpose |
Contact Info | ||
Address Block | ||
Contact Block | ||
Credit Card |
10. API Controls
Key | Control | Purpose |
Password | ||
Verify Password | ||
Verify Email | ||
API Select List | ||
CSV Single Select | ||
API Code | ||
Search Database | ||
Reg.Exp. | ||
Hidden Field | ||
Embed HTML | Injects html code stored in the "forms_published/embed/" folder | |
Direct HTML | Type HTML directly into the attributes editor | |
JS Code |
11. Logic Controls
Key | Control | Purpose |
Start of Page Sections | ||
Page Section Break | ||
End of Page Sections | ||
Conditional Block | ||
Workflow Radio Trigger | ||
Workflow Checkbox Trigger | ||
Workflow Section Start | ||
Workflow Section End | ||
Fieldset Start | ||
Fieldset End | ||
View Block Start | ||
View Block End |
l2. Preview Controls
Key | Control | Purpose |
Classification Block | ||
OCC Service Area | ||
User Control | ||
QRCode Label | ||
Form Preview | ||
Date Dropdown | ||
User Control | ||
Echo Field | ||
Camera | ||
Signature | ||
Testbed |
Control | Shortcut | Purpose |
ALT-A | Save As | Saves the form being edited. | ALT-B | Blueprints | Loads a form blueprint in the designer. |
ALT-C | Clear | Clears/resets the form designer. |
ALT-D | Delete | Deletes a previously saved form. |
ALT-E | Edit | Edits an existing form in the designer. |
ALT-H | Help | A user guide (work in progress) |
ALT-I | Icons | Displays all available icons |
ALT-L | Markup | Opens the HTML markup editor |
ALT-M | Media | Opens the Media Library |
ALT-P | Paste | Paste sample text into the field |
ALT-Q | Save | Saves the form being edited directly. |
ALT-S | Settings | Displays form settings which can be altered. |
ALT-V | View | Displays a previously saved form. |
ALT-X | Swap | Flips the design canvas and control windows |
ESC | Close Popup Windows | Closes any popup window that is open. |
Customize the colours of the form.
Colour | Code | Purpose |
--text-fg | ||
--muted-fg | ||
--input-fg | ||
--input-bg | ||
--input-bd | ||
--page-bg | ||
--card-bg | ||
--icon-bg | ||
--icon-fg | ||
--required-fg | ||
--links-fg | ||
--submit-fg | ||
--submit-bg | ||
--primary-bg | ||
--primary-fg | ||
--secondary-bg | ||
--secondary-fg | ||
--success-bg | ||
--success-fg | ||
--info-fg | ||
--info-bg | ||
--info-body | ||
--warning-bg | ||
--warning-fg | ||
--danger-bg | ||
--danger-fg | ||
--modal-bg | ||
--modal-fg | ||
--star-fg | ||
--star-bg |
Button colours and codes.
Code | Colour | Background Hex Value |
btn-primary | #4285f4 | |
btn-default | #2bbbad | |
btn-secondary | #a6c | |
btn-success | #00c851 | |
btn-info | #33b5e5 | |
btn-warning | #fb3 | |
btn-danger | #ff3547 | |
btn-elegant | #2e2e2e | |
btn-unique | #880e4f | |
btn-pink | #ec407a | |
btn-purple | #8e24aa | |
btn-deep-purple | #512da8 | |
btn-indigo | #3f51b5 | |
btn-light-blue | 82b1ff | |
btn-cyan | #00bcd4 | |
btn-dark-green | #388e3c | |
btn-light-green | #8bc34a | |
btn-yellow | #fbc02d | |
btn-amber | #ffa000 | |
btn-deep-orange | #ff7043 | |
btn-brown | #795548 | |
btn-blue-grey | #78909c | |
btn-dark-grey | #59698d | |
alert-warning | #ffd966 |