Hi,
I am looking at manually creating a radio button, and wondering how to link this so it registers an activity (i.e button click) in the database - it can record any value, just something so I know this option has been selected.
Does anyone have any ideas how to do this?
Thanks
Hi, thanks for this. I can see that I have not been very clear with the above. I would have 3 buttons for example, but dont want to include a radio button from a format point of view, although the functionality would be roughly the same.
So for example, there is basically a record in the database of which button below has been selected.

Use the Button’s onClick() event handler for each of all three of your buttons. Each onClick() handler would then insert the appropriate record in the database collection.
Thanks, do you have any code as an example to write a record in the database collection?
You can use the wix-data insert() function. See the example code snippets.
Okay get you now.
Don’t forget that you can also look at using style on those buttons if you want to change the colour or text colour after the user clicks them etc.
https://www.wix.com/corvid/reference/$w.Style.html
https://www.wix.com/corvid/reference/$w.Button.html#style