Creating Member Profile custom fields with radio buttons and drop down menus

Ok, let me start off by saying I am quite new to this, but I do have some programming experience. I am trying to use the member profile section to collect some key information from my customers, but this information is best suited for radio buttons and/or drop down menus. This is not an option for custom fields (unless I am missing something). For example, I need to know if my customer is right or left handed. Much better to have radio buttons for this as opposed to a text box.

My first thought was a custom form, but the best I can do with this is have the website send me an email. I want this information to become part of their profile so I can easily find it. So after doing some digging, I see that it is possible to write code to take info from a form and push it to the member profile. I’ve figured out how to read the information from the radio buttons in the form and convert that to a string. I just have no idea how to push that string to the member profile. I believe I’ll need to use the wix-members-frontend API, but after several hours of reading, I haven’t gotten very far.

One additional thought is that when loading the form (assuming this is even the best way to accomplish this), I would want to load any info from the member profile into the form so the user can make changes as needed without having to fill in all the information.

Any help would be greatly appreciated.

Thanks!

Your description is a little bit confusing, you jump back and forthn in your description.

So what is exactly your aim ?

Generting a CUSTOM FORM (icluding some Ragdio-Buttons, or even Radio-Button-Groups) ???

I need to know if my customer is right or left handed. Much better to have radio buttons for this as opposed to a text box.
yes → that’s of course right!

I think you have more difficulties than just creating a custom FORM.

Your difficulty is, that you can’t work with the MEMBER-PROFILE (not enough knowledge).

  1. First find the DATABASE, where all that data is stored.

  2. Find out how to get those data out of the mentioned database.

  3. Once you have the data inside a variable (OBJECT), you can do whatever you want with this gotten data.

So one more time, i would say, your first task is to find out how to work with MEMBER-PROFILE.

Just typed in → “member profile” into the search and let’s see one of first results…

https://community.wix.com/velo/forum/coding-with-velo/link-to-private-member-profile-page

Ok, you should take care not to learn from old posts, like shown here, since such old posts probably uses OLD AND DEPRICATED API, like in this example (Wix-Users-API).

But doing a little bit more of RESEARCH → you surely would find much more info about your issue.

You also do not present your whole setp.

-anyone can see your form
-you can describe a lot → but normaly a pic can show more than 1000-words, so why you just don’t show a pic of…
a) your setup
b) related database
c) eventualy your connected dataset (if you use one)
d) all other relevant infos, related to your issue.

This would make it easier to solve your problem.

Don’t forget, it’s only you who has the complete project infront of your eyes.

Code Ninja,

Thanks for the reply. Understood on using pictures instead of words, but I’m just getting started so not much to show yet.

I mentioned a form because that’s the only way I can figure out how to collect the information from the user in a format that makes sense (radio buttons/drop downs), but the goal is to have this information saved to the member profile. Perhaps there is a better way than using a form.

So before I worked on programing this, I wanted to see if this was the best solution or maybe there is something more straight forward.

I’ll continue to search the forums and post back here with more specific questions (and maybe even some screen shots), but any other advice in the mean time is appreciated.

Thanks!

Code Ninja,

I have created a new post that is more concise and has some example code. I would love to get your input on it. Thanks!

Using UpdateMember Function | Velo by Wix