Skip to navigation

CustomField

View as Markdown
global class CustomField
Description
Represents an envelope, template, or account custom field.
isList
@AuraEnabled global Boolean isList
Read-only property indicating whether this is a list custom field.
isText
@AuraEnabled global Boolean isText
Read-only property indicating whether this is a text custom field.
items
@AuraEnabled global List<String> items
List items for the custom field. Ignored if this is a text custom field.
name
@AuraEnabled global String name
The name of the custom field.
required
@AuraEnabled global Boolean required
Whether a value is required for the custom field.
show
@AuraEnabled global Boolean show
Whether to display the custom field to recipients.
type
@AuraEnabled global String type
The type of the custom field, list or text.
value
@AuraEnabled global String value
The value of the custom field.

Methods

global CustomField( final String type, final String name, final String value, final List<String> items, final Boolean required, final Boolean show )
Description
Constructs a custom field.
Parameters
type
final String type
The type of the custom field, either list or text.
name
final String name
The name of the custom field.
value
final String value
The value of the custom field.
items
final List<String> items
The list items for list custom fields. Ignored for text custom fields.
required
final Boolean required
Whether a value is required for the custom field.
show
final Boolean show
Whether to display the custom field to recipients.