I’d like to know where should the method to get the options, like I’d do in a regular model.
You should be able to pass a static method as a string, where the class and method are separated by ::
characters, for example:
myfield:
type: dropdown
options: Path\To\Php\Class::staticMethod
1 Like
Thank you very much! Works perfectly!
1 Like
Hi, this is great, but how would we do the opposite?
How would we populate a dropdown field of a custom plugin with records from a Tailor blueprint?
In my case I’d need to add a dropdown to the Rainlab User plugin, with a list of specialties.
Any advice?
1 Like