Prompt With List From Calculation

Hi there, searched but didn't find anything.

How would the From Calculation option in the Prompt With List function yield a list of multiple possible values?

Making a timer macro, using this to enter the duration of the timer. In the current version I've used List from Text and typed out all the whole numbers from 1 to 100 lol.

Cheers!

I'll confess -- I'm not entirely sure what the "From Calculation" option is doing there! Calculations return a number or a comma separated list of numbers, while "Prompt With List" action requires a return delimited list... Hopefully we'll some examples from the gurus!

In the meantime, I'd query what you want to do from an UX perspective. Scrolling through a list of 100 numbers to find the one you want isn't nice. And KM doesn't display the list when you have 100+ items -- things only happen once you type something in the box and the list can be filtered to less than 100.

That means they have to type a number. And by the time they've typed a number they might as well type 2 or 3 and enter the value like that. Unless there's some reason why you want to use a mousable list (which still needs some typing unless you limit it to 1-99) rather than a typeable dialog?

You're right– I am just typing it in. Whimsically, I like the look of the Prompt With List prompt better.

I had read that it doesn't list text values if there are more than 100, but strangely have found that if I add more than that it still lists them for me, even with the Always Show All Entries option turned off.

Anyways, it doesn't really matter– I was just curious how the calculation option might be used.

Cheers!

Ah, you're on the newest version of KM -- I'm still lagging, so don't have the "Always Show..." option. But either something's broken, you've changed the (hidden) default limit to more than 100, or you missed a couple of lines when typing.

But here's one way to easily do what you wanted on the fly:

Prompt List Test.kmmacros (3.1 KB)

Image

I'm also curious about the calculation option -- @peternlewis, I couldn't find an example of it's use on the Forum, do you have anything handy?

The Calculation option is unlikely to be useful for Prompt With List action - it's just there because calculation is an option in that list as used in a myriad of other actions.

1 Like