formData.template
(FintechOS Studio 20.1.1 and later)
Returns the main user interface's HTML code template.
Return Value
Returns a string containing the HTML code template of main user interface.
Examples
In this example:
- We use formData.name method to get the form's HTML element ID and to look it up in the user interface code.
- If we cannot find it, we display an error message using the ebs.showMessage method.
Copy
if (!formData.template.includes(formData.name)){
ebs.showMessage('There is a problem rendering the form.')
}