Reputation: 1
I'm using Adobe Captivate 2019 to make a custom interactive software simulation. I have little to no coding experience but would like to leverage Captivate's execute JavaScript feature to reset/clear the contents of a text entry box triggered by the user's clicking a separate 'clear' button. I'm aware that this very question was asked and answered several years ago on stack overflow but the solution offered there hasn't worked for me. Here's the code I've tried thus far:
$("#InputText_inputfield").val("");
I copied and pasted the above line in the Execute JavaScript Script_Window as the On Success action of my 'clear' button as per the instructions of the previously mentioned post. When I tried to preview my project in HTML5 browser window, nothing happens when the 'clear' button is clicked. What am I doing wrong? Again, please be advised that I know very little about coding so any solution described in layman's terms is appreciated. Thank you.
Upvotes: 0
Views: 277