I'm having difficulty adding a simple text input field to one of my passages. I'm using Snowman for this project. The input field, upon changing, should update a `riddleAnswer` variable with the value of the input field.
<% if (!riddleDoorBlock) { %>
As you approach the door with a face on it, the face starts speaking!
"AH. ANOTHER ADVENTURER ON A QUEST FOR TREASURE."
"I SUPPOSE I COULD LET YOU PASS, BUT I'LL NEED YOU TO ANSWER A RIDDLE FOR ME."
The face pauses, clearly thinking of a riddle to give to you. Finally, it speaks.
"GIVE ME FOOD AND I WILL LIVE. GIVE ME WATER AND I WILL DIE. WHAT AM I?"
Your Answer: <input type="text" name="riddle" onchange="riddleAnswer=this.value">
[[Confirm|Door's Response]]
<% } else { %>
"LIKE I SAID, YOU CANNOT GO THIS WAY ANYMORE. BEGONE."
[[Back|Bronze Chamber]]
<% } %>
I thought I could simply add an HTML element like `<input type="text" name="riddle" onchange="riddleAnswer=this.value">` but it just renders as plain text.
What's the right way to format this?