Forum Discussion

pollyrossi's avatar
pollyrossi
Community Member
6 months ago

Pick One - having 2 issues -- Please help!

I saw a video where to have a drag/drop - when it's one drag object to many objects -- you can do a pick one with Triggers and States.   I'm having 2 issues:

1) When I drag the object from the right to the # on the left -- it is way off and placement goes to the left of the #. 
2) Its telling me Invalid Answer you must complete the question before submitting.   

I've added all the states, and triggers and buttons (offslide).  Can someone please help!  I've probably over complicated this by a lot -- but the money ones -go in 3 ($ 15,000)and 6. ($100,000) -- all others can go in 1,2,4,5,7,8 any order.


5 Replies

  • The position that a dragged object snaps to depends on the outline of the target shape and the setting in the Drag & Drop Options.

    The dragged-to position can also be affected by how the Drop Correct and/or Drop Incorrect states are set up. It sounds like you might set up those states with a something to the left of the Normal object. In other words, you designed the Drop- states with the object moved on top of the target. But any object in those states that's placed outside the Normal boundaries will appear in the position based on where the object is when it changes from Normal to the Drop- state. 

    The Invalid Answer message appears when none of the designated responses is Selected. So check whatever objects and triggers you're using as the responses.

    Does that help fix what's happening with your project? If not, well, troubleshooting is just guessing without seeing all the programming.

    Someone might be able to solve the issue if you upload the .story file. Here are the best practices for doing that:

    • Only include slides that are related to the problem.
    • Be sure objects, layers, motion paths, and variables have meaningful names.
    • If there is proprietary content, replace or delete it. For example, replace proprietary text with “ipsum lorem” text.
    • pollyrossi's avatar
      pollyrossi
      Community Member

      I did upload the .story file in the thread above.  Thanks -- I'm going to try this -- but we are using a pick 1 version - as drag and drop as I know is not many to one (Ie.  one thing can't go to many different objects) -- if I'm wrong -- I've over complicated it.

  • pollyrossi​

    As I said in my previous reply, the snap-to position depends on the boundaries of the drop target. Your drop targets are smaller than the items being dragged. (Some of them also overlap a bit.) When an item is dropped, it centers itself over the target. That's why the numbers get covered.

     

    As I also said, the Invalid Answer message shows when none of the designated responses are Selected. This shows your triggers for the Submit button:

    Trigger order matters. The Submit Pick One 1 triggers runs before the triggers that select one of the actual responses. Thus, none of the responses is selected when the question is submitted, so the Invalid Answer message shows. The selection triggers have to come before the Submit trigger.

    By the way, since there are only 2 response objects, it'd be easier to use one trigger with an Else statement.