Action string input set from multiple choices in a string array variable

Hi,
I have an action that takes a string input. The possible values for this string input depend on a few other things in my parent workshop and it is stored as a string array computed through a function (not based on objects). In the action form, I want this string input to be a dropdown/multiple choice selection where possible values come from this computed string array.

Is there a way to do so? In the ontology action configuration, for my string input parameter, under multiple choice, the only available ways seem to be either hardcode all possible values, or compute from an object set, neither of which fits my use case.

One way is to create your own dialog for action execution through a modal overlay. As in, create a modal overlay with a string selector where possible values are coming from the array variable, and the selected value variable is used as an input to the action which executes upon a button click in the modal overlay.