• Resolved Acidking

    (@acidking)


    Any ideas how to change the custom input field from “text” to “date”? I looked in the SQL but only found this:

    a:7:{i:0;a:9:{s:5:"label";s:3:"DOB";s:8:"meta_key";s:7:"rpr_dob";s:7:"display";s:7:"textbox";s:7:"options";s:0:"";s:15:"show_datepicker";s:1:"0";s:10:"escape_url";s:1:"0";s:15:"show_on_profile";s:1:"1";s:20:"show_on_registration";s:1:"1";s:23:"require_on_registration";s:1:"1";}i:1;a:9:

    http://wordpress.org/extend/plugins/register-plus-redux/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter Acidking

    (@acidking)

    I would like to use the datepicker.

    cynarad

    (@cynarad)

    I am also looking for a way to have a custom field be set to the date format in Register Plus Redux. (specifically, I would like to require users who register to enter their date of birth). I’ve seen a few references to the datepicker on Register Plus Redux website, but I have not seen where/how this can be specified…

    Plugin Author radiok

    (@radiok)

    This was a bug introduced in 3.9, I have resolved this for 3.9.9 which is forthcoming, this week, or next. You can try a development build if you would like to see the feature in action now.

    Plugin Author radiok

    (@radiok)

    This issue should be resolved with today’s release, version 3.9.9

    I’ve set this up for a DOB field, however it’s going to take 5 years to scroll through the datepicker for anyone older than 2 years old. Is there a way I can customise the starting point, and also make it easy to select a year/month instead of having to hit next/previous month buttons over and over?

    Edit:

    I ended up changing this in the plugin itself (I know, not the best solution, but only one I could do for now…)

    for those who want to follow it’s in the latest version at line 829.

    I made it:

    jQuery(".datepicker").datepicker({
    	'changeMonth' : true,
    	'changeYear' : true,
    	'defaultDate': '-25y'
    });

    instead of just:

    jQuery(".datepicker").datepicker();

    Thread Starter Acidking

    (@acidking)

    I noticed that too, I would’ve preferred the datepicker built-in browser which can be invoked using <input type=”date” >, and not the jquery one.

    Plugin Author radiok

    (@radiok)

    Yeah, this is a bee’s nest of a problem. Using HTML5 is fine and dandy, and I personally prefer it to jQuery, but it has less settings, and it is not always supported. On the other hand, I don’t expose any of jQuery’s settings because… where would I stop? I haven’t found an ideal solution for this, as such the date fields are of limited usefulness.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to change input field from "text" to "date"’ is closed to new replies.