I’m currently a bit lost with dynamic DropDown Fields.
I currently have multiple dropdown fields and I want to load dropdown contents dynamically from a yaml file. To load info from a yaml file I created a inline ruby method. Currently I have a ruby method and an instance for every dropdown field but the action is always nearly the same. The only difference are the yml-filenames.
Poor me thought that one method with a case statement should be enough. I just have to know which drop down field called the method but I failed so far on finding out where that info hides or if it is there at all.
I give you an example:
I have two dropdown elements “dropdown1” and “dropdown2”. I have one ruby method like this:
How does the method know when to fill dropdown1 or dropdown2?