Upvote 1

how to keep location of items from previous screen

Answered Whitemagedm 4 years ago

Hello,


I have 2 dynamic panels with some hotspot items inside. It functions great.

I want to make a second screen that leaves the moved items between the panels stay where they are on the previous screen.


Thanks in advance!

Replies (1)
photo
1

You could create an "On Page Load" event which moves the items in the panels to the desired positions.

photo
1

would it be on page load--> move? which move setting would place them in the position on the previous screen?I cant do a fixed position because the user can drag and drop to different panels

photo
1

In that case you'll need to create variables for each hotspot item - one for the X position and one for the Y position. If you have two items, you'll have 4 total variables. Then, for each hotspot item, create an "On Drag Stop" + "Set Value" event, setting the value to a variable. For the value, click 'Calculated', and in the Calculated Expression builder, drag the hotspot item into the open space, and select 'PosX (relative)' from the dropdown of the item. Do the same for the Y position for the other variable. Each hotspot item should have two set value events.

Now, create an "On Page Load" + "Move" event for each hotspot item. For the X position, choose calculated, and drag the Variable into the open space. Do the same for the Y position, using the other variable. We've attached an example. Let me know if you have any questions.

photo
1

I'll give that a shot! Thank you so much for your help!

photo
1

I followed the instructions but it isnt working.


I view my prototypes via html because drag and drop doesnt work via the simulate feature on my touchscreen.

is that the issue?

i want to send the file, but im under an NDA. is there a way to send it privately?

photo
1

here are snapshots of my events. hope that helps

photo
2

Yes, you can send us the file privately. Since you have a subscription you can use the customer support portal, which is private between you and an agent.

photo
Leave a Comment
 
Attach a file