I'm trying to pass two KM variables to this Custom HTML Prompt. I've read several threads here and also the KM documentation, but it's just not clicking for me.
I want to display a progress meter using HTML. I have the HTML (see below), which works beautifully However, the variables are hard-coded into the HTML.
I want to declare the variables in KM and then pass them to the HTML. I’ve used the Set Variable action to create a two KM variables: ProgressMessage and ProgressPercent. However, this is where I get stuck. I don’t know how to change the HTML to read those KM variables.
I know this has to be simple, but I’m spent the last two hours trying to figure it out and am stuck. Thanks.
Perhaps there's an easier way to do this, but here's how I do it. (I believe I found this in some forum post here, years ago.)
Put your HTML in a variable, call it local_theHTML or whatever. Within that, you can reference variables as you normally would in text, i.e. %Variable%local_myVar%.
Then add a Custom HTML Prompt action, and make the action this:
" Replace local_theHTML with the name of the variable that's storing your HTML."
Your Custom prompt is referencing local_theHTML, but you named the variable with the HTML ProgressHTML. So just change the reference, and it should work.
Can you please upload your macro? Select it, click the Share (up arrow in a box) icon, then select the KM Forums. It'll open in a new post; cut all the text and paste here.
One final question, if any knows … how can I make the window size the same as the HTML page. In other words, I want to get red of the area where the red box is.