Forum Discussion
Text entry containing a certain word - Trigger
I've got a similar question, but in this interaction I want the learner to be able to create an ID for a new client that does *NOT* contain spaces or special characters. Is there a way to create a trigger for that?
- StevenBenassi3 years agoStaff
Hi Holly!
It sounds like you were interested in adding filters to text entry fields that would detect if the text has a space or special character.
I see that you've opened a support case and connected with my teammate Dexter. Great move! It looks like Dexter replied to you sharing some feedback on how this would only be achievable through some custom Javascript coding.
I would defer this question to our knowledgeable community members who may be able to share some insight or suggestions!
- JohnCooper-be3c3 years agoCommunity Member
HI Holly
Many thanks for your question - I am in the process of writing some short training modules on how to use JavaScript in Storyline for my website - I was just writing the section on "Why do we need JavaScript?" - and one reason is to manipulate strings and I was looking for a short example of where this might be useful... and then I spotted your question - perfect!
So I quickly dashed out a quick demo - which you can find here...
https://demo15.profilelearning.com
If this is the code you are looking for, I will tidy it up and publish the JavaScript code here.
Related Content
- 6 months ago
- 3 months ago
- 10 years ago
- 5 months ago