$host

PropertyDescriptionException
apptypeReturns the application type of the host. Available only for client applications.Returns HTML 5.
nameReturns the name of the current application.Returns the browser name and its version. For example, in Chrome browser, the value returned is Chrome <version>.
numPagesReturns the number of pages in the document.Pagination policy of HTML5 forms is not identical to PDF forms pagination policy. So the numPages API can return a different values in both the cases.
platformReturns a string representing the platform of the computer running the script.None
titleSpecifies the title of the document. It is available only for client applications.It returns title of HTML document in form, rather than the form metadata title as if there are PDF Forms.
versionReturns a string representing the version number of the current application.It returns the version of the form.
calculationsEnabledSpecifies whether calculate scripts will execute.None
validationsEnabledSpecifies whether validation scripts will execute.None
pageUpGoes to the previous page.HTML5 forms do not follow the same pagination policy as PDF Form, so the previous page of an HTML5 form is different from previous page of a PDF Form.
pageDownMoves to the next page of a form. Use the pageDown method at runtime.
setFocusSets the keyboard focus to the field specified. The field is specified as an object, or by the SOM expression of the field. It is available only for client applications.
resetdataResets the fields to their default values within a document.Clears all data in a form with merged data, rather than restoring it to default values.
messageBoxDisplays a dialog box on the screen. It is available only for client applicationsMessage box of type Yes/No is converted to OK/Cancel. Message box with three buttons is not supported.
currentPage

Sets the currently active page of a document at runtime.

Page values are 0-based, so the first page of a document returns a value of 0.

The currentPage property is available when layout:ready executes on a client. However, it is not available when layout:ready executes on the server because the property will not execute until the form layout executes.

None