Skip to main content
adobe5505
Known Participant
January 19, 2019
Answered

Enforcing button clicking order

  • January 19, 2019
  • 3 replies
  • 425 views

Hello,

I am trying to create an alternative for a drag and drop interaction. Instead of dragging items and then dropping them in the correct order, I want users to click the items off to the left and then appear off to the right in the correct order.

I have achieved this so far by using transparent buttons over my images on the left and hiding the images on the right and then executing an advanced action to show the image on the right once the corresponding button is clicked.

Now I am trying to figure out a way to enforce the clicking order of the buttons. For example if the user clicks an image out of order, it will not appear to the right. The user would have to keep clicking buttons on the left in order to find the correct order for the images to appear on the right.

Does anyone have any suggestions on how to do this?

Thank you

This topic has been closed for replies.
Correct answer dan561

The simplest approach would be to disable the clickable buttons and only enable the next button in series when a correct button is clicked. There should not be any need to use transparent buttons - use image buttons instead.

On Enter - disable all buttons except the first in the series and hide all images on the right

Each button - a shared action that:

1. Shows the corresponding image on the right

2. Enables the next button in the series

3. Disables or hides the button that was just clicked (to prevent repeat clicking)

3 replies

adobe5505
adobe5505Author
Known Participant
January 21, 2019

Thank you, I was definitely over thinking that, I appreciate your simplistic approach! 

dan561Correct answer
Inspiring
January 21, 2019

The simplest approach would be to disable the clickable buttons and only enable the next button in series when a correct button is clicked. There should not be any need to use transparent buttons - use image buttons instead.

On Enter - disable all buttons except the first in the series and hide all images on the right

Each button - a shared action that:

1. Shows the corresponding image on the right

2. Enables the next button in the series

3. Disables or hides the button that was just clicked (to prevent repeat clicking)

Lilybiri
Legend
January 19, 2019

I have developed similar use cases for clients, am sure to be able to get this done. However, it would take me too much time which I cannot afford. You have to be very familiar with creating either shared/advanced actions of JS. Crossing my fingers that someone will be helping you. Sorry.