formData.mainHtmlId
(FintechOS Studio 20.1.1 and later)
Returns the ID of the main user interface's HTML element.
Return Value
Returns a string containing the ID of the main user interface's HTML element.
Examples
In this example, we use formData.name to get the form's HTML element ID and set its background color to #FF91AF:
- We use the formData.MainHtmlId to retrieve the user interface's HTML element.
- We run the animate method to rotate the user interface 360 degrees once (iterations: 1) over a period of 1 second (1000 milliseconds).
Copy
document.getElementById(formData.mainHtmlId).animate([
{ transform: 'rotate(360deg)'}
], {
duration: 1000,
iterations: 1
});