get_field_options
Retrieve available options for Link or Select fields in Frappe Framework, providing document lists for linked DocTypes or predefined selection values.
Instructions
Get available options for a Link or Select field.
For Link fields, returns documents from the linked DocType.
For Select fields, returns the predefined options.
Args:
doctype: DocType name
fieldname: Field name
limit: Maximum number of options to return (default: 20)
Input Schema
Name | Required | Description | Default |
---|---|---|---|
doctype | Yes | ||
fieldname | Yes | ||
limit | No |
Input Schema (JSON Schema)
{
"properties": {
"doctype": {
"title": "Doctype",
"type": "string"
},
"fieldname": {
"title": "Fieldname",
"type": "string"
},
"limit": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": 20,
"title": "Limit"
}
},
"required": [
"doctype",
"fieldname"
],
"title": "get_field_optionsArguments",
"type": "object"
}