Changeset View
Changeset View
Standalone View
Standalone View
src/docs/user/configuration/custom_fields.diviner
| Show First 20 Lines • Show All 113 Lines • ▼ Show 20 Lines | - **options**: If type is set to **select**, provide options for the dropdown | ||||
| as a dictionary. | as a dictionary. | ||||
| - **default**: Default field value. | - **default**: Default field value. | ||||
| - **strings**: Allows you to override specific strings based on the field | - **strings**: Allows you to override specific strings based on the field | ||||
| type. See below. | type. See below. | ||||
| - **instructions**: Optional block of remarkup text which will appear | - **instructions**: Optional block of remarkup text which will appear | ||||
| above the control when rendered on the edit view. | above the control when rendered on the edit view. | ||||
| - **placeholder**: A placeholder text that appears on text boxes. Only | - **placeholder**: A placeholder text that appears on text boxes. Only | ||||
| supported in text, int and remarkup fields (optional). | supported in text, int and remarkup fields (optional). | ||||
| - **copy**: If true, this field's value will be copied when an object is | |||||
| created using another object as a template. | |||||
| The `strings` value supports different strings per control type. They are: | The `strings` value supports different strings per control type. They are: | ||||
| - **bool** | - **bool** | ||||
| - **edit.checkbox** Text for the edit interface, no default. | - **edit.checkbox** Text for the edit interface, no default. | ||||
| - **view.yes** Text for the view interface, defaults to "Yes". | - **view.yes** Text for the view interface, defaults to "Yes". | ||||
| - **search.default** Text for the search interface, defaults to "(Any)". | - **search.default** Text for the search interface, defaults to "(Any)". | ||||
| - **search.require** Text for the search interface, defaults to "Require". | - **search.require** Text for the search interface, defaults to "Require". | ||||
| Some applications have specific options which only work in that application. | |||||
| In **Maniphest**: | |||||
| - **copy**: When a user creates a task, the UI gives them an option to | |||||
| "Create Another Similar Task". Some fields from the original task are copied | |||||
| into the new task, while others are not; by default, fields are not copied. | |||||
| If you want this field to be copied, specify `true` for the `copy` property. | |||||
| Internally, Phabricator implements some additional custom field types and | Internally, Phabricator implements some additional custom field types and | ||||
| options. These are not intended for general use and are subject to abrupt | options. These are not intended for general use and are subject to abrupt | ||||
| change, but are documented here for completeness: | change, but are documented here for completeness: | ||||
| - **Credentials**: Controls with type `credential` allow selection of a | - **Credentials**: Controls with type `credential` allow selection of a | ||||
| Passphrase credential which provides `credential.provides`, and creation | Passphrase credential which provides `credential.provides`, and creation | ||||
| of credentials of `credential.type`. | of credentials of `credential.type`. | ||||
| - **Datasource**: Controls with type `datasource` allow selection of tokens | - **Datasource**: Controls with type `datasource` allow selection of tokens | ||||
| ▲ Show 20 Lines • Show All 72 Lines • Show Last 20 Lines | |||||