Layout and design
The Custom Design tab of a form sets how it looks.
Layout sub-tab
| Setting | Meaning |
|---|---|
| Frontend Frameworks | The CSS framework the HTML is written for: Responsive, Bootstrap2, Bootstrap3, Bootstrap4, Uikit, Uikit3 or Foundation. Pick the one your template uses. Responsive works with any template. |
| Load Layout CSS / JS | Yes loads the framework's own CSS and JavaScript with the form. Choose No when your template already loads that framework, so it is not loaded twice. |
| Layout Flow | Horizontal (label next to field) or Vertical (label on top of field). |
| Auto Generate Layout | Yes rebuilds the HTML each time you change the fields. No keeps your own HTML. |
New forms take their framework and Load Layout CSS / JS from Configuration > Default, see Options.
Edit the HTML by hand
- Set Auto Generate Layout to No.
- Click Edit Layout. The HTML Layout editor opens with the current HTML.
- Change the HTML. The - Insert Placeholder - list adds the code of a field.
Each field uses three placeholders in the layout: {Name:caption}, {Name:body} (the input) and {Name:validation} (its error message). {error} is where the form's error message appears. See Placeholders.
When auto-generation is off, new fields are not added to the layout. Add their placeholders yourself. Generate Layout rebuilds the layout from the fields and erases your changes.
The layout also accepts {if ...}...{/if} blocks, see Placeholders.
CSS sub-tab
Your own CSS for this form, with the <style> tags. JavaScript goes on the Scripts tab, see Scripts.
Syntax highlighting
Configuration > Configuration > Enable Syntax Highlighting turns on coloured code editors for HTML, CSS, JavaScript and PHP.