sfGetDocumentMode

Returns the mode in which the digital form is open. Document mode can indicate whether the form is open in a web browser, in the mobile applications or is being printed into a PDF format.

Syntax

sfGetDocumentMode()

Parameters

None

Returns

Value

Description

Value

Description

mobile

When the form is open in the mobile applications (Android or iOS).

print

When the form is being printed into a PDF format on the server.

web

When the form is open in a web browser.

Usage examples

sfGetDocumentMode()

Returns either mobile, print or web, depending upon where the digital form is open.

Known issues

Click here to see the known issues in this function.