Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not Solved [General] "Select" Custom Fields
#1
Not Solved
I'm using the latest version of myBB. When setting mandatory custom select fields on registration, the field always defaults to the first value. Is there a way to put a blank value at the top of the list, to force the user to make a choice? I've tried a blank line, a space and &nbsp in the list, but when saving the list, it removes the blank line and the space. &nbsp just shows up as '&nbsp' in the list.
#2
Not Solved
I think this'll need a small code edit... in ./member.php, line 541:

foreach($expoptions as $key => $val)

Before this, add:

$select .= "<option value=\"\"></option>";
MyReactions - All Plugins

Can you still feel the butterflies?

Free never tasted like pudding.
#3
Not Solved
(2011-02-25, 09:24 AM)MattRogowski Wrote: I think this'll need a small code edit... in ./member.php, line 541:

foreach($expoptions as $key => $val)

Before this, add:

$select .= "<option value=\"\"></option>";

I'll give it a go, thanks for your response Smile


(2011-02-25, 10:00 AM)leroy Wrote:
(2011-02-25, 09:24 AM)MattRogowski Wrote: I think this'll need a small code edit... in ./member.php, line 541:

foreach($expoptions as $key => $val)

Before this, add:

$select .= "<option value=\"\"></option>";

I'll give it a go, thanks for your response Smile

That worked fine. I also added 'selected' to this option, so that it didn't highlight the first one in the list but highlighted the blank one. Thanks again.
#4
Not Solved
I didn't understand what exactly you did?!!
I want to have a default blank choice for optional custom fields in registration page that can be leaved blank and a default blank item in mandatory fields that users should change it. I added the mentioned code modification in member.php (Using 1.6.8) but it still removes first blank line item and selects first item as default.
would you please explain more
#5
Not Solved
(2012-06-10, 10:45 PM)armin3000 Wrote: I didn't understand what exactly you did?!!
I want to have a default blank choice for optional custom fields in registration page that can be leaved blank and a default blank item in mandatory fields that users should change it. I added the mentioned code modification in member.php (Using 1.6.8) but it still removes first blank line item and selects first item as default.
would you please explain more

Me and my friend had the same problem
Please help
#6
Not Solved
up......
#7
Not Solved
up.... please help
#8
Not Solved
up.........
#9
Not Solved
up.............


Forum Jump:


Users browsing this thread: 1 Guest(s)