User submitted content

This is a request for more Wix Code Help documentation around user submitted content. On this page
https://support.wix.com/en/wix-code/user-input

I understand how user’s can submit content to a database and how to display it… but I don’t understand how to force users to be logged into the site to submit content and how to let them edit it afterwards.

Could you please provide some documentation and/or examples of this scenario? Many thanks.

Hi scoobie,
That’s a good point, we should make sure it’s clear.
In the meantime, let me help you out - To do this, you need to combine two Wix features:

  1. Wix Code :slight_smile:
  2. Protected Pages - learn how to create a members-only page here: Wix Editor: Creating Members Only Pages | Help Center | Wix.com

thanks for the steer; if I understand you correctly the members only page is to submit new user generated posts as this will force the user to login to get to the form. Great idea.

My scenario is a community forum that anyone can read, but submitted content is in a prescribed format.

An example would be a feature request forum, where users can vote on each others ideas
or a community forum where users submit tips and vote on best ones with the heart button.

The reason for my thinking about doing it via wix code and not wix forum is to pre-format the user submitted content to a certain structure - it would be title, category, picture, URL and a short description. So it’s not a free format discussion forum like this one is. It’s more like pre-formatted blog posts. In fact I was doing to experiment to see if the form inputs could be loaded into blog posts or a Wix forum.

Can a wix code user submitted form populate new blog posts? or even new Wix Forum posts? My thinking here is it would save building a custom view to display the content and would enable user commenting quite easily.