I am working with JetEngine forms and i need to add a dropdown of users to select from in one of the form.
is there any way to do this? i dont see any field type of users and also for the select option. if i choose filled dynamicly i have some pre build functions to get the data but none for the users?
How can I set this dropdown or build a function to be show as one of the dynamiclly generated options?
I have not found much on serching this issue and not in their documentation
2
Answers
As i did not find much info on the web, and there is no real good documentation for the JetEngine Plugins i started digging in the plugins' code. I found that the best solution for me was to create my own form generator - that would give me a custom function to select from when creating a new select field in the form builder.
This is the code i used for creating the custom generator:
And this is the basic structure of the actual get-users generator:
Hope this helps...
There is an alternative way of doing it without code as they introduced a dynamic function to pull the user list via query builder.
Detail explanation here https://youtu.be/v3QR3824F4Y?t=420