Forum Discussion
How can I block one drop target for some objects?
Hello everyone, I am creating an Drag-n-Drop interaction.
I have 10 objects and two drop targets. I need to make it so that only target number one works for 6 objects, and only target number two works for the remaining four objects. Are there any ways to accomplish this?
- WaltHamiltonSuper Hero
The built-in Drag and Drop allows you to return a dropped object to its starting point if dropped outside a correct target. Select Design, then Drag & Drop options.
Hi Aleksandr,
Thanks for reaching out! I see that Walt provided an excellent recommendation already. I'm happy to provide some screenshots if you prefer to see some visuals. I prepared the attached sample project based on your description. You can assign objects 1-6 to Drop Target 1 and 7-10 to Drop Target 2. Then set up the Drag & Drop Options as Walt suggested.
Let me know if you have questions!