Date of Birth Attribute not working properly - Can anyone help?
Permalink
I have a client who is runnig a dating site through C5. It's set up so that when people fill in the reg form a lot of the fields are required. One of the fields is DOB and is quite important. I was having some problems with this before & deleted the attribute & recreated it with a different ID and set it to Date input only. Just received this mail from my client to say it's still not working.
"When I go to register the date of birth has today’s date in it so some people are just leaving it and then the default is coming in.
Secondly if they do fill in their date of birth but they get notification that there is a problem in one of the other areas once they change the problem area the date seems to change back to todays date and the system accepts it!"
Can anyone help me out?
"When I go to register the date of birth has today’s date in it so some people are just leaving it and then the default is coming in.
Secondly if they do fill in their date of birth but they get notification that there is a problem in one of the other areas once they change the problem area the date seems to change back to todays date and the system accepts it!"
Can anyone help me out?
Hi Frz, thanks for taking the time to reply. Website is fairwayfriends.ie
What she means is if a user is signing up & makes a mistake on the form, the value that has been entered on the DOB field resets to the current date. Does this happen with you?
What she means is if a user is signing up & makes a mistake on the form, the value that has been entered on the DOB field resets to the current date. Does this happen with you?
The date not retaining value on post is a bug that we can fix in the core. However I would say that she should create her date attribute a "text input field." This value still saves as a date in the database, but it will be retained on submit. Plus it doesn't have the JavaScript calendar (which doesn't really make sense on a date of birth anyway.)
So create a date and time attribute, but in the box that lets you choose its display format, choose text input field. This should fix her immediate problem.
So create a date and time attribute, but in the box that lets you choose its display format, choose text input field. This should fix her immediate problem.
Thanks Andrew. I'll update the attribute type to text input. The field defaults to 1/1/1970 when i had it set to text input originally which is why I changed it to a date input. Is this a similar bug in the core or something unique on this site I need to look for?
Steve
Steve
Hi Guys,
the default value of 1/1/1970 is still coming in on the registration form for me & my client is getting a bit pi$$ed off at me and shouty - screamy.
Can you make any suggestions as to what I need to do to get it sorted?
the default value of 1/1/1970 is still coming in on the registration form for me & my client is getting a bit pi$$ed off at me and shouty - screamy.
Can you make any suggestions as to what I need to do to get it sorted?
Hi Stephen, I tried to replicate this with the following -
1. add a new user attribute- date / time - input type - text only.
2. make it required for registration
3. go to the registration page
4. the date field is blank.
What may be happening in your case is that the user was already registered and the date defaulted to 1/1/1970 and got translated to text when you switched the way the input worked?
1. add a new user attribute- date / time - input type - text only.
2. make it required for registration
3. go to the registration page
4. the date field is blank.
What may be happening in your case is that the user was already registered and the date defaulted to 1/1/1970 and got translated to text when you switched the way the input worked?
Hi Greg,
If only it was that easy. They are all new sign-ups that this 1970 issue is happening on.
I'm stumped.
If only it was that easy. They are all new sign-ups that this 1970 issue is happening on.
I'm stumped.
We can't replicate this.
Can you do it on one of our Instant Setups?
Create one from here:
http://concrete5.org/about/trial...
Turn on some screencapturing software and show us how you're getting this thing to do what you're describing. That might help, otherwise I'm afraid we're stumped too.
Can you do it on one of our Instant Setups?
Create one from here:
http://concrete5.org/about/trial...
Turn on some screencapturing software and show us how you're getting this thing to do what you're describing. That might help, otherwise I'm afraid we're stumped too.
have you confirmed this is happening? maybe there's something screwy going on? I'm not sure without some more detail