Skip to main content
Participating Frequently
August 29, 2022
Question

Toggle function working differently on desktop and mobile

  • August 29, 2022
  • 1 reply
  • 634 views

Hello.

I set up a custom interaction (multiple choice question) with 3 of 4 correct answers. The user must select the 3 correct answers and are directed to reset the activity/try again until they get it correct. Once correct answers are selected, a continue button appears and they can move on to the next slide. The buttons are set up as "toggles", meaning that they can select and deselect from the list if they change their minds about an answer.

 

The activity works as intended on a desktop (toggle, incorrect path to try again, and correct to continue); however, on mobile, it is NOT working. If you select the first and then the second box, the first box immediately disappears. Then it is a mishmash of working/not working once you continue to click buttons.

 

I have double-checked my advanced actions and they are set as I want, plus they work on a desktop. Does anyone have any thoughts as to what the issue is and how to fix it? (I've considered mobile settings, advanced actions, etc.) On a side note, I have noticed that in standard accordion interactions on mobile my "visited" state is disappearing when another button is clicked. Again, only happens on mobile.

 

    This topic has been closed for replies.

    1 reply

    Lilybiri
    Legend
    August 29, 2022

    Is the Visited state created as a Custom or the InBuilt state? There is an important difference in behavior! See:

    http://blog.lilybiri.com/button-states-basics-and-tips

     

    BTW, please use the Preview window in the Advanced Actions dialog box to avoid having to create two screenshots for one decision block. It is opened using the first button (arrow) in the top right control panel of the Advanced Actions dialog box. Here is an example of such a preview window:

    Participating Frequently
    August 29, 2022

    Hi, Lilybiri. Thanks for your reply. I created the Visited state from In-Built but I deleted my rollover and down states. I don't know if that changes the "status" of my Visited state? Do you recommend that I change my actions from "Change state of" to "Go to the next state" when toggling? (That does seem like a more elegant way of building it.) And why would any of this change when viewing on a mobile device instead of a desktop?

    RodWard
    Community Expert
    Community Expert
    August 30, 2022

    The inbuilt Visited state in Captivate is not really meant to indicate to be manipulated by Advanced Actions.  Using that inbuilt state could explain why you are getting unpredictable results from your actions and why it is working differently on a mobile device, which would normally be a touch screen, rather than a mouse-driven desktop computer.

     

    Therefore the suggestion is to also delete your current Visited state and create your a custom MyVisited state and use that in your actions instead.  (Make sure it's name is not just 'Visited' otherwise Captivate might think it's the inbuilt state and you're back to square one again.)