SMF Development > Bug Reports

(2.0 RC4) Custom Profile Fields - select box default

(1/2) > >>

hakcenter:
I noticed that the text style custom field, doesn't show up when you don't have any text in it. Which is great. I would consider that working as intended.

But is there a default for select box / radial that could be considered a opt out / no selection ? I have a tendancy to make a -- select box for no selected value, but it is showing up when people submit their other options for other profile fields.

hakcenter:
still looking for some help with this..

select boxes, that aren't a requirement, should have some kind of opt-out / no display like text boxes with no text.

Arantor:
Well, I'm not sure this is a bug, exactly so I'm not sure it is going to be 'fixed'. But unfortunately I don't know how to alter it offhand either.

hakcenter:
If we could have a blank menubox item, as the first item...

then the rest.. you could opt out by selecting it.

Because as it stands now, we have a blank box, but when we select it... (after choosing something from before) it still keeps your old selection...

hakcenter:
I think the way the 'default value' works is sorta incorrect. Except for a required nature.

We need a bit more language, however.

Profile-Modify.php

Change

--- Code: ---$value = $row['default_value'];
to
//$value = $row['default_value'];
$value = '';

--- End code ---

Let's users select the blank box again. And it works, but it does make the profile look weird on refresh. If you then go somewhere else, come back to profile view, it shows everything as it should.

Is there an if required check ?

Navigation

[0] Message Index

[#] Next page

Go to full version