Edit the HTML Files

The HTML files for an Element consist of an HTML file and an optional CSS file. The HTML file provides an HTML template used to define the Element's appearance and the CSS file can be used to provide additional styling, if required. Styling provided within a CSS file can't be changed using Styles within the Studio but can be used for aspects of the Element which don't need to be customisable. For example, the Text Box Element uses the CSS file to position the hide/show eye icon displayed when the Text Box is set to password mode:

Picture showing Password box.

Note that all Elements share the same namespace, so all style names within your CSS files must be unique within the project. One way to achieve this is to prefix the style name with the unique identifier of the Element to which the style relates, e.g. ndl-textbox-redtext.

 

You can use the HTML files for the standard Digitise Forms Elements supplied with Form Studio as a guide when creating new Elements. For example, the following shows the HTML used to define the standard Text Box Element. This is a simple Element consisting of a label and an edit box. Click on individual lines to drop-down an explanation of the HTML used:

</div>

</div>

</div>

</div>

</div>

</div>