Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Check if user has selected checkbox - if not, show popup message

Explorer ,
Aug 31, 2017 Aug 31, 2017

Hello,

I'm using the checkbox interaction. The user has four checkbox selections. After they make a selection, they click a Submit button which checks the answer. For this, I have a conditional action. For the first decision called Check if Empty, it evaluates if all 4 answers = v_null (so it evaluates if no checkboxes have been selected). If so, then a popup appears telling the user to select a checkbox before clicking Submit.

decision 1.fw.png

For the second decision called Check Selected, it evaluates if the correct checkbox has been selected (in this case, v_hurried). If it has been selected, and the user clicks the Submit button, it will perform the required actions. 

decision 2.fw.png

The issue is that when I click Submit without having selected a checkbox (so it first evaluates Check if Empty), it shows the popup window like it should, but then it continues to the next decision and evaluates it and performs those actions.

I need it to pause after the Check if Empty decision is evaluated (so it stops with the popup and waits for the user to select a checkbox and click Submit). Then, when the user selects a checkbox, it will then evaluate the Check Selection decision and complete the required actions.

Thanks for your help,

David

Working in Captivate 9 on a PC.

268
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , Sep 05, 2017 Sep 05, 2017

In case this benefits others, I figured out the issue by re-working the advanced actions. There may be a better way, but this way worked for me. I now have the following three decisions that cover the following scenarios:

- user clicks Submit without selecting a checkbox - a window appears telling user to make a selection before they can continue.

- user clicks Submit after selecting one or more incorrect checkboxes - incorrect feedback window appears and other feedback windows (if any) disappear.

...
Translate
Community Expert ,
Aug 31, 2017 Aug 31, 2017

Checkbox interaction is a static interaction. User will have to click the Submit button again, you just have to provide multiple attempts. What is wrong with that?


Be careful: you don't have a situation included in your action, when one of the wrong checkboxes is checked, or is that in the ELSE part of the second decision?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 31, 2017 Aug 31, 2017

Thanks for your reply. I failed to mention in the last sentence that the user must click Submit after selecting a checkbox. Also, I do have an ELSE statement in the second decision - didn't show it because didn't think it relevant.

Sorry, I'm a little unclear with your response. So the first time the user clicks Submit without having selected a checkbox, they will get the popup window saying "select a checkbox." They will continue to see that popup window no matter how many times they click Submit if they haven't selected a checkbox. Then, when they do select a checkbox and click Submit, it will evaluate the second decision and show the correct answer feedback. The Submit button is already set to multiple attempts.

I don't want users to be able to move forward to the second decision (and seeing correct/incorrect feedback) without them having selected a checkbox and clicking Submit.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 31, 2017 Aug 31, 2017

That is the problem, I didn't see the complete action. Do you know that a conditional action can be shown totally using the Preview button? It is the first button in the top control panel of the Advanced Actions dialog box.

I understood that only one check box is correct, or did I misunderstand? There are multiple situations in that case:

  1. None of the checkboxes is selected, you have covered that in the first decision, THEN part
  2. The correct check box is selected, which is covered in the THEN part of the second decision
  3. What has to happen when two or three check boxes are selected ?
  4. What has to happen when one check box is selected but not the correct one?

You see that two out of four situations are missing in what I could see in the screenshots.

You cannot prevent a decision from being evaluated once the action is triggered: all decisions will be evaluated and a later decision can override a former decision. That is the way actions are designed. If you explained what has to happen in all the situations, I could help you to write the correct action.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 05, 2017 Sep 05, 2017
LATEST

In case this benefits others, I figured out the issue by re-working the advanced actions. There may be a better way, but this way worked for me. I now have the following three decisions that cover the following scenarios:

- user clicks Submit without selecting a checkbox - a window appears telling user to make a selection before they can continue.

- user clicks Submit after selecting one or more incorrect checkboxes - incorrect feedback window appears and other feedback windows (if any) disappear.

- user click Submit after selecting the correct checkbox - correct feedback window appears and other feedback windows (if any) disappear.

There are the three IF/THEN decisions (no ELSE decisions):

No Select.fw.png

Incorrect.fw.png

Incorrect.fw.png

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Help resources