Element position/coordinates

Hey Bubble community!

I am currently building a drag/drop feature on my app, however, I am facing an issue while dropping an element. I need the element to sit exactly where it’s placed. Can I somehow obtain the element coordinates (Position X, Position Y)?

Thanks for any help!

What do you mean by you “need it to sit exactly where it’s placed”?

Are you talking about it’s dropped position persisting beyond a page load/refresh?

Yes exactly - I figured if I can get the coordinates of the element and then use the workflow so make changes to a thing and store them it would potentially work. I know that the elements from the drag/drop groups have Position X Position Y already built in, but I cannot make it to have them stored in a database through a workflow.

You just need to store the X and Y coordinates in 2 fields in the database.

This topic was automatically closed after 70 days. New replies are no longer allowed.