PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Date (Advanced Field) Sorting

  1. Hello- A friend of a friend was having some issues with the gravity formsDate Picker. He seemed concerned enough to let me know, so I thought I would post here.

    It seems he is used to date pickers which sort descending, but the Gravity Forms date picker seems to sort ascending. He was taken aback at first, and it seems to be a minor source of irritation for him, but I just would like to know if there is any (easy) way to sort it descending, or even remove past dates?

    Thanks. Your help will be greatly appreciated (by him).

    Bryon

    Posted 11 years ago on Sunday March 31, 2013 | Permalink
  2. SOLVED IT: I put the following code in the <HEAD> of my themes header.php file.

    <script type="text/javascript">
    jQuery(document).ready(function($) {
    	$(".datepicker").datepicker({
    		minDate: 0, showOn: 'both',
    		buttonImage: '/wp-content/plugins/gravityforms/images/calendar.png',
    		buttonImageOnly: true, hideIfNoPrevNext: true
    	});
    });
    </script>
    Posted 11 years ago on Sunday March 31, 2013 | Permalink
  3. Thank you. Do you have a URL where we can see this in action?

    Posted 11 years ago on Monday April 1, 2013 | Permalink