By comopoli on
Hello!!
I would like to configure profile module in a way that visitors to my website can put their date of birth. But since it is a private question, I want to make this field optional and not required.
So, I make sure that the "required" setting is checked off. But since it is not something like "--" by default, some date always shows up even if nothing was specified. So it is virtually a required field with false date inserted into it...
How can I make date field optional and maybe show only "--" or nothing at all?
Thank you all for your advice.
Comments
Hmm...
Same problem.
I have one solution, but it's really bad: adding checkbox for enabling field.
In the "modules/profile.module" inside function profile_view_field() after
add this:
Now it must be like this:
And inside function profile_form_profile() after
add this:
Result:
Looking for better solution.
anover way
I have custom user list layout by this snipet
http://drupal.org/node/44481
in user_profile.tpl.php place this code