Wix Code and Wish Lists

Is it possible to create a user input form and make a wish list. Perhaps adding a number of pictures and a radio (select) button to pick the items the user wants?

Hi,

it is certainly possible. I would start by reading about user input forms here:

You can create additional collection for storing wishes and bind them to a radio group component. Assuming that your items are stored in collection ‘options’:

import wixData from 'wix-data'

$w.onReady(function () {
  wixData.query('options')
    .find()
    .then(
      (result) => { $w('#RadioGroup1').options = result.items.map((item) => ({ label: item.title, value: item.title })) }
    )
});

You could also store images for the wishes in the same collection and use gallery to display all the options with images.
You could even enhance the gallery to allow selecting wishes by clicking on images.

Let me know if you need any further help. Have fun Wix Coding! :slight_smile:

1 Like

Thank you, Giedrius Graževičius