Custom HTML Prompt with "Result Button" Choices

Hi all,

I have only just discovered the power of the Custom HTML Prompt.

I know how to create the final "Submit" button, but I'm curious how I could create buttons similar to those of a KM User Input Prompt Action? That is, at the end of the prompt I might have a few different buttons "Other", "Submit", "Options 2" where they all submit the HTML data but the "Result Button" variable is different depending on which button is clicked.

Is this possible?

Thanks!

Ah, looks like that's very easy to do:

<button name="Options Menu" type="button" 
   onclick="window.KeyboardMaestro.Submit('Options Menu')">Options Menu
</button>

And then the "HTML Result Button" variable is set to "Options Menu".