Custom form elements

Hello,
I would like to add custom form elements such as
Select colors


Select one of type

Upload button with drag and drop files


Is it impossible to do it with wix code?
Hoping someone can help please :slight_smile:

Hi Polina,

Welcome to WixCode.

For a simple color selector as you’ve shown, you can just use buttons, boxes, or repeaters inside of a container box. If you want to get “fancy”, then put the HTML code for a full color selector (that you can find on the Internet) inside of a $w.HtmlElement on your page.

For the selection control, you can use a series of text links. Or one of the multitude of built-in menu options.

There is an upload button, but I’m not aware of support for drag and drop, but I’ll need to check on that. You can always submit a Feature Request .

I hope that answers your questions.

Yisrael

Hi Yisrael,
Thanks for your answer.

I set a series of text links, but I want to save the text that selected by user into database, can I do it?

Best,
Polina

It’s not clear to me exactly what you’re trying to do, but on the surface it seems that you can do what you’re attempting.

I have an item ‘Website kind’ into the database

I have texts list in the site


When user click on business I want to set the ‘Business’ text into the ‘Website kind’ item
The scenario:

  1. User click on ‘Business’
  2. User click on submit button
  3. In the answers table the ‘Website kind’ item has ‘Business’ value


How can I do it? Help me please :slight_smile:

Best,
Polina

Hey Polina,

Here ya go. Take a look at Tutorial: Creating a Form to Store User Input in a Database Collection . I think this article is just what you need to get started. Once you have the basics down you can “get fancy”. At that point there are other tutorials and articles that can help, and you can always visit the forum and get help from other users and from all of us at Wix.

Have fun, and be in touch.

Yisrael

hii
i want to check member login database collection where does it save data pls help

when you say simple use buttons? do you use code get color of button?