Changing the presence of a form design object

Designer provides the following presence settings for the different objects on a form through various tabs in the Object palette. The Invisible and Hidden (Exclude from Layout) settings are unavailable for groups, content areas, master pages, page set, and subform set objects.

Note: To change the presence setting of an object by using scripts, you must change the value of two underlying XML Form Object Model properties: presence and relevant .

The following table lists the presence settings and the corresponding reference syntax.

Presence setting

Reference syntax

Visible

FormCalc

ObjectName .presence = "visible"

JavaScript

ObjectName .presence = "visible";

Visible (Screen Only)

FormCalc

ObjectName .presence = "visible" ObjectName .relevant = "-print"

JavaScript

ObjectName .presence = "visible"; ObjectName .relevant = "-print";

Visible (Print Only)

FormCalc

ObjectName .presence = "visible" ObjectName .relevant = "+print"

JavaScript

ObjectName .presence = "visible"; ObjectName .relevant = "+print";

Invisible

FormCalc

ObjectName .presence = "invisible"

JavaScript

ObjectName .presence = "invisible";

Hidden (Exclude from Layout)

FormCalc

ObjectName .presence = "hidden"

JavaScript

ObjectName .presence = "hidden";

One-sided Printing Only

FormCalc

ObjectName .presence = "simplex"

JavaScript

ObjectName .presence = "simplex";

Two-sided Printing Only

FormCalc

ObjectName .presence = "duplex"

JavaScript

ObjectName .presence = "duplex";

// Ethnio survey code removed