Create Pods frontend with no form
-
Hello!
I’m looking for a solution about creating pods in frontend.
But I guess it’s not very typical since I want to make it automatically.My case:
I’m going to do a user private “words bank” – I have a book on my webage and I want to allow user to add some word to his or her “glossary”. Eg. there’s a word in a book which user doesn’t know so it is possible to store this word for later learning (every user will have individual list of “unknown” words). I was looking for a solution and I found pods. So, I created a simple pod with only three fields: UserId, Word and CreateDate. This allows me to store and make relation between User and his list of words.At this point, I can display list of words based on UserId but how can I allow user to mark some word (technically to add a pod) from frontend? I know it’s possible using form, but that’s not exactly what I’m looking for. I want to make a tooltip (showed when user hovers a word) which contains a button “Add word to my glossary” (or whatever like that). When user hits the button, the word is added to user’s words list.
At this time I’m not looking for creating relations between specific word in book or something like that – it’s all about inserting hovered value into database with user Id which hits “add” button.
Any tips how to do that?
- The topic ‘Create Pods frontend with no form’ is closed to new replies.