Drag and Drop with Multiple States of objects and Button triggers
Nov 15, 2019
By
asad ali
Dear Friends
Attached is a free form drag and drop activity whereby I want users to drag fruits to the 'fruits hotspot' and vegetables to 'vegetable hotspot', yeah thats easy :) I know that.
I have created two buttons "Fruits" and "Vegetables". The "Fruits button" will show all the fruits and the "Vegetables button" will show all the vegetables.
However, here's the twist, I need the "vegetables" to be hidden when the "fruits button" is clicked with the condition that "vegetables" are not "hidden" if they have been dragged and hide only if they are yet to drag and vice versa for the fruits.
Can some Hero please check and guide.
Thanks
8 Replies
Hi Asad
is this what you mean?
Thank you @ Wendy Farmer
Yes, this is what i was looking for, however, a little addition i.e; i want the "vegetables" to be hidden initially as well when the user clicks on fruits (You can see in the video that the vegetables are still showing when fruit button is pressed)
Regards
I thought you wanted the ones already dropped in the cart to be visible???
Could you please share the file or explain how you managed to do it?
Here is the file Asad
Thank you very much!
Hope it helps or gives you an idea - perhaps I misunderstand what you are trying to do.
Yeah, it sure helps in achieving half of what i wanted to do, will explore more.
This discussion is closed. You can start a new discussion or contact Articulate Support.