Drag & drop to reorder list items? Randomize list items? #62990
daotw
started this conversation in
Interactivity API
Replies: 2 comments 5 replies
-
I searched the web and found nothing in terms of saving Interactivity-API-related data in the database. In API's documentation, I think there should be at least a few sentences providing directions or keywords regarding database. |
Beta Was this translation helpful? Give feedback.
5 replies
-
There's nothing specific, but you should be able to use the HTML Drag and Drop API with directives, like |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Does Interactivity API enable users to drag & drop list items in a list?
Use case
The "ranking question" in a survey plugin.
Example 1
Example 2
There will also be situation where the answer choices (list items) need to be randomized.
After list items are reordered and survey form submitted, the data should be saved into database. I guess I'll use plain JS to save "state" or "context" (if there are multiple forms in a page) into database?
Beta Was this translation helpful? Give feedback.
All reactions