# Constants
> Technical documentation for the Dropbox Sign API.
# Constants
## Field types
These are the options you can specify for the `type` field.
| Type | Description |
| ---------------- | ------------------------------------------------------ |
| `text` | A text input field |
| `checkbox` | A yes/no checkbox |
| `date_signed` | A date when a document was signed |
| `dropdown` | An input field for dropdowns |
| `initials` | An input field for initials |
| `radio` | An input field for radios |
| `signature` | A signature input field |
| `text-merge` | A text field that has default text set by the api |
| `checkbox-merge` | A checkbox field that has default value set by the api |
## Form fields per document
Different field types may have different options available to them within the `form_fields_per_document` parameter.
| Field type | Description |
| ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `text` | **placeholder: String** (optional)
Placeholder value for text field.
`"placeholder": "First Name"`
**auto\_fill\_type: String** (optional)
Auto fill type for populating fields automatically.
`"auto_fill_type": "email"`
Checkout the list of [auto fill types](/api/manual-reference-pages/constants#auto-fill-types) to learn more about the possible values.
**link\_id: String** (optional)
Link two or more text fields. Enter data into one linked text field, which automatically fill all other linked text fields.
`"link_id": "linked_fields_id_1"`
**masked: Integer**(optional)
Masks entered data. For more information see [Masking sensitive information.](https://faq.hellosign.com/hc/en-us/articles/360040742811-Masking-sensitive-information)
`1` for masking the data in a text field, otherwise `0`.
`"masked": 0` |
| `dropdown` | **options: String\[]** (required)
Array of string values representing dropdown values.
`"options": ["Option 1","Option 2"]`
**content: String** (optional)
Selected value in `options` array. Value must exist in array.
`"content": "Option 2"` |
| `hyperlink` | **content: String** (required)
Link Text.
`"content": "Click me!"`
**content\_url: String** (required)
Link URL.
`"content_url": "http://example.com"` |
| `checkbox` | **group: String** (optional)
String referencing group defined in `form_field_groups` parameter.
`"group": "group_1"`
**checked: Integer** (required)
`1` for checking the checkbox field by default, otherwise `0`
`"checked": 1` |
| `radio` | **group: String** (required)
String referencing group defined in `form_field_groups` parameter.
`"group": "group_1"`
**checked: Integer** (required)
`1` for checking the radio field by default, otherwise `0`
`"checked": 1` |
## Checkbox field grouping
Checkbox field groups accept an optional validation rule, which must be met before the user can submit the signed document. These are the options you can specify for validation rule.
| Rule | Description |
| ------------------ | ----------------------------------------------------------------------------------------- |
| `require_0-1` | Requires at most one checkbox within the group to be checked (radio button functionality) |
| `require_1` | Requires only one checkbox within the group to be checked |
| `require_1-ormore` | Requires at least one checkbox within the group to be checked |
## Radio field grouping
Radio field groups must define a validation rule, which must be met before the user can submit the signed document. These are the options you can specify for validation rule.
| Rule | Description |
| ------------- | ---------------------------------------------------------------------- |
| `require_0-1` | Makes group optional (signer does not have to select any radio option) |
| `require_1` | Makes group required (signer has to select one radio option) |
## Conditional logic
Conditional logic allows adding an "if this, then that" flow to signature requests.
| Field type | Description |
| ---------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `id`
**String** | Unique across all defined rules.
`"id": "rule_id_1"` |
| `trigger_operator`
**String** | Currently only **AND** is supported.
`"id": "rule_id_1"` |
| `triggers`
**Array** | An array of trigger definitions, the "if this" part of "**if this**, then that". Currently only a single trigger per rule is allowed.
| Parameter | Description | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| `id` **String** (required) | Must reference the `api_id` of an existing field defined within `form_fields_per_document`. Trigger and action fields and groups must belong to the same signer. `"id": "uniqueIdHere_1"` | ||||||||||
| `operator` **String** (required) | Different field types allow different `operator` values:
| ||||||||||
| `value` **String or String\[]** (required) | The value to match against the `operator`. When `operator` is one of the following, `value` must be **String** (single string): `is` `not` `match` Example: `"value": "foobar"` When `operator` is one of the following, `value` must be **String\[]** (array of strings): `any` `none` Example: `"value": ["foo", "bar"]` **checkbox**: When `type` of trigger is `checkbox`, `value` must be `0` or `1`: Example:`"value": 0` **checkbox**: When `type` of trigger is `radio`, `value` must be `1`: Example:`"value": 1` |
| Parameter | Description |
|---|---|
| `field_id` **String** (required) | Must reference the `api_id` of an existing field defined within `form_fields_per_document` Cannot use with `group_id`. Trigger and action fields must belong to the same signer. Example: `"field_id": "uniqueIdHere_1"` |
| `group_id` **String** (required) | Must reference the ID of an existing group defined within `form_field_groups` Cannot use with `field_id`. Trigger and action fields and groups must belong to the same signer. Example: `"group_id": "group_id_1"` |
| `hidden` **Integer** (required) | `1` to hide the target field when rule is satisfied, otherwise `0`. Example: `"hidden": 1` |
| `type` **String** (required) | Use `change-field-visibility` if `field_id` is used. Use `change-group-visibility` if `group_id` is used. Example:`"type": "change-field-visibility"` |
| Field | Description | Supported Endpoints |
|---|---|---|
populate_auto_fill_fields
|
Type: boolean
Default: false
Controls whether auto fill fields can automatically populate a signer's information during signing. ⚠️ Note ⚠️: Keep your signer's information safe by ensuring that the signer on your signature request is the intended party before using this feature. Auto-fill fields are only able to be assigned to signers. |
signature_request/create_embedded
signature_request/create_embedded_with_template
unclaimed_draft/create_embedded
unclaimed_draft/create_embedded_with_template
|