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
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doctype | Yes | ||
| fieldname | Yes | ||
| limit | No |