View.showForm()
Overview
Opens the form specified. If the form does not exist or is already open the function will do nothing.
View.showForm() is only available for profiles that have the Show forms in Velocity client option enabled. This function should not be used in a script that is linked to the global, beforeSession, or session scopes because it must run after the page is loaded. If this function runs before the page is loaded or in a session that does not allow forms, it does not do anything.
Android and Windows support added in version 2.1.31
iOS support added in 2.1.34
Format
View.showForm(formName);
Value | Description | Type | Required |
---|---|---|---|
formName | The name of the form. Find it in the Form Title field in the Velocity Console, or the Form Name column on the Forms page in Ivanti Neurons for IIOT. | String | Required |
Example
// Set the F8 key to show the specified form.
function Click(event)
{
View.showForm('DamagedGoods');
}
WLEvent.on("OnKey<E042>", Click);