Forum Discussion
Submit interaction not working if you type a number into the text box
Hi there
I have been fiddling with this all morning now. Originally it was a freeform text box interaction so I changed it to a pick one interaction in hopes it would fix the issue to no avail.
When you type the number into the "smart search" text box, it will not trigger submit interaction on the search results layer.
Could someone tell me if its an error on my part or a "feature" in the SL software? Tia :-)
Hi Carrie,
Thanks for reaching out!
One of your triggers was referencing a variable that wasn't getting populated with the correct value which was why your interaction was not working properly.
For the 'Smarch Seach Box' item, I updated the variable that the highlighted trigger was referencing from SmarchSeachBox to SmartSearchText and this appears to have fixed the interaction.
Additionally, I had to disable the Javascript in the slide because testing showed that this was what was preventing the interaction from being submitted after the slide is published. Here's a screenshot showing that the interaction will work when the aforementioned change are made:
And here's a link to the published output of the course so you can test out the interaction. Since we do not provide support for troubleshooting Javascript code, please have your developer review the Javascript code to check why it is preventing the interaction from being successfully submitted.
Let me know if you have any questions!
- CarrieWernhamCommunity Member
Thanks Joe! I was the one that wroe the JS code so it's on me. I will look into the code and try to rectify.
Thanks again for your input!