Visible property

ServerRelayButton.Visible — Logical

Represents whether a button is visible.

Associate a formula with this property to determine if users should see a button based on information they have entered in the app, based on their email address or based on the tags you have assigned to them.

To show a button at all times, but determine if users are allowed to interact with it using a formula, use the Enabled property instead.

If this property is not set, it returns FALSE.

Examples

TermsAcceptanceTermsAcceptance

Shows a button only if the user has accepted the terms and conditions, specifically if the switch field TermsAcceptance has been toggled to its "on" position.

ISODD(Field1) && (Field2 < 3)ISODD(Field1) && (Field2 < 3)

Shows a button only if Field1.ValueField1,Value is odd and Field2.ValueField2,Value is less than 3.

Field1.ValidField1,Valid

Shows a button only if Field1 is considered valid.

AND((Field1:Field5).Valid)AND((Field1:Field5),Valid)

Shows a button only if all fields of the Field1:Field5Field1:Field5 range are valid (as determined by the Valid property of the fields). This range includes the two fields Field1 and Field5 and all fields that appear between them.

The formula (Field1:Field5).Valid(Field1:Field5),Valid returns a logical array with the same number of elements as there are fields in the Field1:Field5Field1:Field5 range, like this array: { TRUE, FALSE, TRUE, TRUE, FALSE }{ TRUE; FALSE; TRUE; TRUE; FALSE }. The AND function returns TRUE only if all elements of the array are TRUE.

AND(ISDEFINED(Field1:Field5))AND(ISDEFINED(Field1:Field5))

Shows a button only if all fields of the Field1:Field5Field1:Field5 range are filled out (that is, have values which are not blank). This range includes the two fields Field1 and Field5 and all fields that appear between them.

The formula ISDEFINED(Field1:Field5)ISDEFINED(Field1:Field5) returns a logical array with the same number of elements as there are fields in the Field1:Field5Field1:Field5 range, like this array: { TRUE, FALSE, TRUE, TRUE, FALSE }{ TRUE; FALSE; TRUE; TRUE; FALSE }. The AND function returns TRUE only if all elements of the array are TRUE.

ENDSWITH(App.UserEmailAddress, "@example.com")ENDSWITH(App,UserEmailAddress; "@example.com")

Shows a button only if the signed-in user has an email address that ends with "example.com". (To enable users to sign in, make your app private.)

USERHASTAG("Employee")USERHASTAG("Employee")

Shows a button only if the signed-in user is associated with the tag "Employee". (To enable users to sign in, make your app private.)