Is it possible to put a dynamic reference in a user prompt variable?
Variable "Prompt1" is set to "Receipts".
In the User Prompt variable field, there is "Prompt1".
When the prompt displays in the macro, "Receipts" is shown.
The user enters "$100".
The variable "Receipts" is filled with "$100."
It's as though "Prompt1" is a conduit to get the value "$100" into the variable "Receipts."
I realize there is a LOT wrong with the coding logic of what I just wrote. I have no idea how it would coded or if it's even possible in KM. I'm just trying to communicate the intent.
The idea is to have a dynamically changing list of prompts that can be fed into the user prompt action.
Please don't do all the walking for me on this but can you get my brain just a couple steps closer. I did previously look at (and actually apply in another context) indirect variable references using token processing.
However, it seems to me that whatever I type in one of the "Prompt for User Input" variable fields (not the value side on the ride, but the field side on the left), that which I typed in the prompt on the left will be the variable name displayed, to be filled by the value on the right.
Below, you see in the image "Prompt1". I want "Prompt1" to display as "Receipts" when the Prompt for User Input action executes. Maybe later I want "Prompt1" to display as "Year," hence the dynamic nature of this.
I see no way to apply an indirect variable reference in this context.
If I'm correctly interpreting your intended use, you could accomplish the same thing by using a conditional that leads to different Prompt for User Input actions (each of which uses distinct input variables, like Receipts and Year), depending on the value of a variable that the conditional evaluates.