Is there a way to add an item to the list when using "Prompt with List" to the variable.
Here is the example where I can choose between 4 different items on the list or any of the combinations of the items. I want to find out how when I choose an ellipses (...) to have a new window open that would allow me to type in a new item to add to the list.
You can do that and it has been discussed here before.
Have a look at this topic:
You'll have to modify it a bit to suit your specific needs, but it should show you the way.
Do you want to add and select that item, or just add to the list and return to the prompt with the now-expanded list?
Here's an example of the latter:
Prompt List with Addition.kmmacros (8.2 KB)
...which will re-sort the list after every addition, leaving "..." as the final item -- delete the "Filter" action if you don't the items to remain in the order you've added them in.
If you want the former option, delete the "Set Variable Local_choice
to %Delete%
" action.
As written it does rely on you selecting only the "..." option when you want to add something, and no other items. So you'll want to ad some error handling if that could cause a problem.
I enjoy this kind of "text manipulation problem" so I wrote a solution of my own, even though two other people have offered solutions. This solution has the ability to ADD, DELETE and SORT the items in the list.
Prompt with Edit Options Macro (v11.0.3)
Prompt with Edit Options.kmmacros (8.8 KB)