Skip to main content

customerBuiltInFieldRules

Requires a customer (portal or buyer app) session.

Lists, for every built-in field and every form that has it, whether the organization hides it, offers it or requires it, for the portal's and the buyer app's forms. Requires a signed-in buyer.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

query CustomerBuiltInFieldRules {
customerBuiltInFieldRules {
defaultRule
field
rule
surface
}
}

Response:

{
"data": {
"customerBuiltInFieldRules": [
{
"defaultRule": "string",
"field": "string",
"rule": "string",
"surface": "string"
}
]
}
}
customerBuiltInFieldRules: [BuiltInFieldRule!]!

Type​

BuiltInFieldRule object​

Whether one built-in field is hidden, optional or required on one form.