Problem : Check box condition on a submit button

Sep 09, 2015

I work with Storyline2 and don't understand why my condition doesn't work.
When I submit the valid Button, the trigger condition 'selected' doesn't match to display my layer 'Alert2'

Does someone knows what is my problem ? Thanks to you

14 Replies
Walt Hamilton

Like Ashley says, it is hard to know without the .story file, especially as we cannot read all of the first condition.

This is just a guess, but I do not think you need two conditions on CC_rep1. The second condition is adequate.  If the state is equal to selected, you do not need to check any other condition for that shape.

Two suggestions: Is the first condition supposed to check the state of another button?

If not, delete it and only use the equal condition.

If that does not help, attach the .story file and maybe someone can look at it and help you.

Frederic Langlest

Thank you for your help Ashley and Walt,

I've found a solution using variables on my check box buttons to display the layer I want. This solution work if the condition is done on the selected state or not selected state. Normal or other states don't work.

Anyway, I want to understand what is the problem in my first process. So, I'd be happy if you could have a look at my file .story

For your question Walt, I let you have a look at my file.

Thanks again

Walt Hamilton

Fredrick,

I see two things:

 

1. The parts that are built into Storyline show up in English for me, and the items you have named retain their French names. So I'm wondering about this trigger for btn_valid_Q1. It seems to me that the condition should change to the English name. The version I downloaded could not find the condition, but worked when I changed it to "Selected". That may be a problem with the language in Storyline, but it may also indicate that you have created your own "Selected" state. Generally, it does not work well to created a state with the same name and function as a built in state.

2. Both the btn_valid_Q1 and the Saisie de texte change the value of bonneReponse, and I wonder if that is what you want. It seems like the saise de texte is for the user to enter their answer, but as it is, it allows them to set the variable that indicates their answer was good.

If this doesn't answer your question, or is not understandable, please ask me more.

 

 

 

Frederic Langlest

Hi Walt,

1.The english condition 'selected' is 'selectionné' in french version, and doesn't work with this state. It's not a state I've created. It's a storyline state in french. The problem could be from the french version as you say.

2. The text area is used to test result conditions check box instead of the layer display. If yours works, it's different with mine. The french version seems a good way.

I'll test a last time and I'll talk about it to my French Articulate seller.

Thank you very much

Walt Hamilton

When I run it this is the result:

Then I change the trigger:

It is hard to see, but on the right is the original with the state name in French, and on the left is the state name in English.

 

This is the result:

 

This certainly is not my idea of how things should work when you change from one language to another. The change should involve nothing more than the label of the selected state, and it should change from French to English while still pointing to the same state. Your logic should work.

I conclude that maybe your installation is corrupted, and you can fix it by reinstalling Storyline, or else this is a bug in the program.

 

Walt Hamilton

 This set of triggers would work if you were jumping to another slide instead of showing a layer. In that case, with the three variables set to true, it would jump to a new slide, and forget the rest of the triggers. However, showing a layer is a different matter. It stays on this slide, and completes the list of triggers that happen when Button1 is clicked. So if the variables are true, it shows the Correct layer, then before you can see it, it shows the Incorrect layer, no matter what the variables are. There is no if...then...else in SL triggers,

To get this to work, you also need conditions in the second trigger so it doesn't execute if the conditions in the first trigger are met.

Try: Show layer Incorrect when user clicks Button1 If Variable1 Not Equal True, OR Variable2 Not Equal True, OR Variable3 Not Equal True.

This discussion is closed. You can start a new discussion or contact Articulate Support.