-
-
Notifications
You must be signed in to change notification settings - Fork 86
Description
Question
Is there any possible way with the current functionality/extendability with Formie to dynamically load a list of entries from a data source and replace this on existing select field?
I'd imagine I could implement something custom myself with JavaScript events, but obviously looking at using the Formie JS/events first.
The use case I have is based on the selection of another field I want the list of options in a select field to be dynamically loaded and modified, given the value selected on the first field influences the values returned on the other.
Rather than use dropdowns, I was thinking using entries fields so I have more control over the data criteria part given they are not fixed and also if we remove options I don't want this to affect submissions, with entries these can be disabled to prevent them being visible but still be in the data for this part.
The main area is the dynamic loading of options on the select field. I could implement a controller/Element API endpoint to return the data needed to be replaced, but just in case I'm over complicating it.
Additional context
No response