Variable question about spaces.

Jan 05, 2022

This is my first post and I'm not sure how to put my 'ask' into the right words, but here goes. In Storyline 360, I have a registration form that requires users to input Name, Email, and Agency. I've added conditions to the trigger for the  'Register' button that prevents the user from submitting the form until all fields are complete. This works fine, but users are able to hit the spacebar as an entry and are able to progress by entering a 'space' for each text input. Is there a way to prevent this?

My trigger looks like this:

Register trigger

Any help would be appreciated. Thanks in advance!


6 Replies
Walt Hamilton

You can write the trigger conditions:

If First is not equal (blank)

    OR First is not equal [space]

AND etc.

Just use the space bar to put the space in the value (see the attached sample)

The problem is that if they press the space bar twice, it will still advance.

So if you want to catch any number of spaces, you will need to write a javascript to check the responses.

Richard Watson

This is an interesting challenge. You could change the (blank) value and replace it by hitting the space bar. The problem here is the users could hit the space bar twice and bypass this.

Have you considered creating a "warning layer" to not use the space bar and then creating the following triggers? Here's the catch, each time they press the space bar, they will get the pop up alert telling them to enter text and not use the space bar. If they just keep closing that alert and use the space bar for the remaining fields, SL will still let them continue.  But, perhaps most people would be tricked into thinking they must not use the space bar and go ahead and complete the fields.

There may be a way to accomplish this with JavaScript but I'll leave that up to someone else in the forums.