Skip to main content
Phoenix_Leo
Known Participant
June 15, 2022
Answered

Out of 8 icon clicks, any 4 needs to be clicked to activate next button

  • June 15, 2022
  • 1 reply
  • 1898 views

Hello Madam/Sir,

There is a scenario in which there are 8 icon clicks. When the 1st icon is clicked it will jump to the 2nd slide and when the 2 slide is complete the next button should be enabled, after clicking the next button on the 2nd slide it should go back to the 1st slide where the 8 icons are present. So this interaction will work for all 8 icons. In this case, any 4 icons can be clicked out of 8 icons so that it activates the next button.

How to write a trigger for such kinds of interactions. If any file is present with such kinds of triggers. Please share it would be really helpful.

 

    This topic has been closed for replies.
    Correct answer Lilybiri

    The shared action has been created to take into account multiple clicks on the same icon. Did you have a look at that blog post? It can easily be adapted to your requirements. 

    For slide 2 until 9 it would be possible to have one Next button to display for the rest of the project. You can use a rather simple action On Enter for those slides like this:

       Hide Bt_Next

       Delay Next Actions by x secs             where x stands for the duration of the animation

       Show Bt_Next

    That could be a shared action, with the duration and the button as parameters.

    That Next button (Bt_Next) has the action 'Jump to Slide 1'

    The Next button (Bt_NextMain)on slide 1: 'Jump to Slide 10'

     

    For the dashboard slide 1 use the On Enter action to Hide Bt_NextMain

    You need to create 9 user variables: v_1.... v_8 will relate to the icons, and v_counter will track the number of clicks.

    The icons need each a shared action with 3 decisions:

    Decision 1: 'Always' is non-conditional

       Increment v_1 by 1         v_1 for the first icon, etc is the first parameter

       Jump to slide 2                slide 2 being the second parameter

    Decision 2: 'Counting'  is conditional

       IF v_1 is equal to 1

          Increment v_counter by 1     this variable is not a parameter, only incremented on first click

    Decision 3: 'Checking' is conditional

           IF v_counter is equal to 4                doesn't matter which icons have been clicked but you need 4

                   Show Bt_NextMain               this is the third parameter

     

    Do not forget to use the On Enter action for slide 10 to Hide Bt_Next because it was displayed for the rest of the project and would appear because it has been shown on the last visited slide.

    1 reply

    Lilybiri
    Legend
    June 15, 2022

    Not completely clear to me, a flowchart would have been better. Some questions:

    1. What happens on the second slide, which is necessary to know since it needs to be done before the Next button on that second slide appears.
    2. For the other icons: to which slide do they have to navigate? Is the setup there similar to the second slide and same requirement for Next button?
    3. When four icons have been clicked on the dashboard slide, where should the now appearing Next button navigate to?
    4. Will you allow multiple clicks on same icon?

     

    The dashboard forced view (4 out of 8 icons clicked) can easily be done with the shared action I explained extensively in:

    http://blog.lilybiri.com/tips-and-tricks-advanced-to-shared-action-intermediate

     

    Since I have no idea what the requirements for the other slides Next button are, not sure which action will be necessary. Probably also a shared action. Maybe it is possible to use the same Next button displayed for the rest of the project to achieve the actions on slide 2 until... slide 9. Since that Next button will always have the same action to navigate back to the first dashboard slide. The Next button on the first slide will probably need another action though.

    Phoenix_Leo
    Known Participant
    June 15, 2022

    Thank you for the reply Mam.

     

    1) For the 2nd slide, there is a simple animation. I can enable the next button on the end of the slide.

    2) When I click the 1st icon it will jump to 2nd slide and when next button on the 2nd slide appears when I click it will come back to 1st slide, when I click 2nd icon it will jump to 3rd slide and when next button on the 3rd slide appears when I click it will go back to the 1st slide When 3rd icon is clicked it will jump to 4th slide and when the next button appears on the 4th slide if I click the next button it will again go back to 1slide so this the process for all the other icons.

    3) After next button is enabled after clicking any 4icons it should to slide 10. You are right mam a new next button will be required.

    4) Not sure mam, what If we allow multiple clicks for one icon and still count only one even click numerous times.

     

    It's bit tricky so I am not sure whether I responding correctly for your answers.

    Lilybiri
    Legend
    June 18, 2022
    onenter.jpg

    Sorry to be too honest, have been cursed about that multiple times. If you didn't understand terminology, you could have asked.

    You did NOT create shared actions but individual advanced actions. Why? If you post a screenshot of the fully expanded Advanced Actions panel (F9) this could be confirmed, but I bet my suspicion will prove to be correct.