![]() |
Saving a userfield Select that allows user's own value using set_userfields()
Hi, I'm currently creating a custom page where users may be able to edit their own informations including custom fields like first name, user type, gender, etc... Thanks to a tutorial I found in this forum, it was making a good progress, the problem is in the part where the information input comes from a drop down box with "Allow user to input their own value for this option", how will i save the data if the user opted to input his own value?
here is an example of my code in saving the edited fields, field33 is the field im describing. PHP Code:
|
I'm not sure I follow everything you're saying, but it seems to me that in general there's an <input> or <select> tag for each field, but for what you describe you will need a <select> and an <input type="text"> for field33, and they should have different names. Then you can have your code check both and choose which one to save as field33.
|
All times are GMT. The time now is 01:46 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|