User Inputs in Repeaters

Wix Code will not allow me to place user inputs, whether it is drop down selections, radio buttons, text inputs within a repeater. Is this not allowed?

Really, what I’d like to do is create a conditional drop-down of sorts. I only want to show one drop down menu, with a button to add additional drop downs. I know that I can use repeaters, with an Add Button to create a new repeater dataset. This would solve my issue, if I was able to add a drop down to the repeater in general.

3 Likes

bump – is this a bug? really bothersome.

Hi David!

No, it’s not a bug, it’s just not developed at this point. You can’t add user input components to Repeater (except table, which is not actually input component)
Team is working on it - but it won’t be in near future

Strange this isn’t set up yet. I was trying to create a list of testimonials with user input and repeaters. Do you have another suggestion? I need the testimonials to show as a list layout. See here: https://pauledesign.wixsite.com/disney/testimonials

Hey
Well, i’m not sure about your usecase. If you want to display list of testimonials, why would you want to input something in each repeated container?

How do you suggest displaying a list of user generated testimonials/reviews?

I just put a regular list on that site for now. We will do it ourselves, but I would like a list to populate the testimonials. If the repeater doesn’t work with user inputs - then what sort of list does?

Wix has a published example on how to create and display user generated reviews, with comments: https://www.wix.com/code/home/example/Reviews

This should be what you’re looking for.

I saw that. The reviews don’t show up in a list. I need a list.

I think we need to determine exactly what you need. Two different sides of the equation here, when users are inputting reviews and when users are reading the reviews.

Do you need a repeating list which shows all the repeating items they can post reviews on, or just a list to see all the reviews that have already been created?

If it is the latter, you can do that. If it is the former, then I have no idea.

Latter. I just need the reviews to show up on the list. Preferably after the Owner approves them. Like Google reviews does it. I don’t need the stars for now, just the data feeding into the list.

Yah you don’t need what I was asking about. Everything you need has already been published by Wix. You can pull in user reviews using normal, non repeater user inputs. Then, you can just add them to a repeating layout.

What elements would I be using in the editor? If not a repeater, then what?

So you’re saying it has to be added manually to the repeater. Might as well just use the list builder.

Paule – I am not sure of your familiarity with Wix Code, but there are lots of ways to do this. The most basic way:

  1. Create a database
  2. Add a User Input field to your page, where users can add reviews/testimonials.
  3. Add a dataset to the page and Link the User Input to your database from step 1.
  4. Users populate the dataset/database through the User Input
  5. Add a Repeater to your page and link it to the User Input from the dataset

This will create a repeater, that shows all of the reviews/testimonials in your dataset, which was added to by users.

I hope this helps, as I know how frustrating it is to learn all of this. At the same time, if these steps do not make sense, you’ll have to put in some additional time looking over the Wix Code Basics: What is Velo? | Help Center | Wix.com

I did all of the above and it’s not populating the repeater.

Unfortunately, I won’t be able to help much further. Wix has posted extensive and detailed guides on how to do all of this. I’d recommend you study them a bit further. Good luck!

Thanks David!

Thanks David - and that was exactly what i asked.

Paule - you want user-generated reviews/testimonials; so, you need repeater to show them and section to enter them (text input + submit button + write only dataset)
So actually it’s exactly what David proposed
If you experience problems with this, please post your site’s url so i can check what is missing

Thanks, I have it set up now. I was wondering if there was a way to make them NOT show in the repeater unless the admin turns them on. Here it is (click on “add your testimonial”) https://pauledesign.wixsite.com/disney/testimonials