Thanks for this wonderful platform. It’s helping me a lot to put together what I want. Keep up the good work!
I’m trying to create a form where users can create a thing (a product), in a very similar fashion as the “create apartment” video in the documentation. One of the differences with my project, is I would like the user to submit tags to her created product (I later plan to retrieve products that match searches on those tags, sorted by numer of tags matched). Each product is almost surely multitag, so I was thinking of using a multiline input box, and tell users to separate tags by either comma or semicolon (which one should I use?).
In the workflow I could give the instruction to save it as a text list, but I’m not clear how it saves it in the database, and how I should perform the search to retrieve it.
The way I would do it is a field that is a list of text, and then have one input and a ‘add’ button that adds each tag one by one. not sure a multiline input where people have to type a comma is a great UX
Ideally with tags you would enable some sort of autocomplete so that users don’t add too many variations of what is essentially the same tag (e.g., “strawberry”, “strawberries”, “strawbeery”).
UX-wise, allowing user to type and press ENTER key is good as an alternative to the button. If user does enter multiple terms separated by commas, that would ideally create multiple individual tags (that’s how it works in Wordpress, for example). If there is no way to enable that, then ideally you would disable commas, semi-colons, etc. from the input field so that users don’t end up submitting a single tag like “strawberry, sweet, healthy” when they expected each to be submitted as an individual tag, and then they’ll need to fuss around trying to delete and re-submit them individually.
Hi guys, I have a similar need, but I was thinking of doing it differently.
What I would like to do is allow the member to click on words (stored in the database), when reviewing a place so that it can be added to the place in question.
I have a thing named Review, which contains:
Name (text)
Value (yes/no)
and a thing “Place” which contains different fields, including a list of reviews.
I struggle to make it work. I can’t figure out how to save a word that has been clicked by the user and add it to the Place. I think my setups are wrong, I would be grateful if you one of you can take a look and let me know how i should proceed (if do-able).
You have made life a little difficult for yourself by creating a temporary list “on the page” when you are selecting the reviews, rather than save them to the database as you click. So you are saving on “Submit review” I think.
This means we have to create this temporary table of selections. And it takes a bit of work…
However, I have made a few changes to your page, so that selected words now bold, and are added to a custom state. This temporary list is then the thing that is stored when you click to Save Review.
It doesn’t do the count, and you can’t “deselect” something.
Thank you Nigel.
Actually I was not really sure how to “play” with the custom state, but I think I get it now and it was indeed my goal to save the words only once the button “submit a review” is clicked.
So in theory, if I follow the way you did it, and add the relevant actions, i should be able to do the “count” as well as the “deselect”, correct? I’ll look into into it and revert if I struggle.
Hi there, I have tried several ways but I am still struggling to figure out how to do it… I am even wondering if this is the most appropriate way of doing it. (If not please let me know)
For reminder, what I am trying to achieve is as follows:
I want the users to be able to review places. One user can review only one time a given place.
The user clicks on the pencil icone and a popup opens up showing a list of words
The user can select up to 3 words out of a list.
A review is saved when the button “save” is clicked. It should save the words (up to 3 words max) along with a count+1
When a review has been saved, 2 possible behaviors:
The word is selected for the first time, it saves it and do a count + 1
If the word has already been selected in previous reviews by other users, it should increment the current count of the chosen words by 1
Eventually, I want to be able to show for instance, the 2 most selected words for a given place, or use these words as filter to show only the place associated to a given word.
I am struggling to save properly the list or words which comes from the custom state and link it to the place that is being reviewed… if anyone can help me with that, that would be of great help as this is my “major blocking point” to make progress with my app. Thanks a lot!