Customise and Create Elements

Digitise Forms allows advanced users, with HTML, JavaScript and AngularJS experience, to modify the Elements supplied with Form Studio and to create their own Elements which can be added to the Elements gallery on the Ribbon.

Forms Elements are implemented using a combination of AngularJS v1.8.2, jQuery 3.6.0, HTML, CSS, JavaScript and version 3.3.7 of the Bootstrap Framework, together with a configuration file.

They can be either simple or complex. Simple Elements include things like labels, text boxes, checkboxes, drop lists and buttons, and are effectively a single item. Complex Elements include the Address Finder, Capita Pay360 Cart Item and Pay360 Cart and consist of multiple items within a single Element. For example, the Address Finder allows a user to type-in a full address or look up an address from a postcode by combining a number of simple Elements within one complex Element - several text boxes, a checkbox and a button.

 

Form Studio allows you to change the supplied Elements to modify the look or behaviour of the Element or to create new Elements to provide new functionality or to group Elements you commonly use together. New or modified Elements can be added to the Form Studio's Elements folder, making them available for use on any of your forms and can be shared with other developers.

Complex Elements can use pre-existing Elements within them, so that you don't have to redefine common constituents for each new Element. For example, the Address Finder Element needs text box, checkbox and button items. Rather than rewrite code to create these items within the Address Finder, the Address Finder simply imports the pre-existing standard Text Box, Checkbox and Button Elements supplied with Digitise Forms. The Address Finder Element combines these standard Elements with additional code, in order to define the required address entry and postcode search functionality.

If you are editing an existing Element, make sure you take a backup of the original before you start, and increase the version number within the Element so that you can easily keep track of which forms are using which version.

 

To create new Elements or modify existing Elements, use the Elements supplied with Form Studio as examples to guide you. Remember, if you want to modify an existing Element, we recommend that you copy it to a new Element first and then modify your new Element, so you don't lose the original one.