Can you use jquery date picker in Grid Edit to restrict a date field

  • 1
  • 1
  • Question
  • Updated 3 years ago
  • Answered
Photo of Shontay

Shontay

  • 490 Points 250 badge 2x thumb

Posted 3 years ago

  • 1
  • 1
Photo of Ⲇanom the ultimate (Dan Diebolt)

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 30,434 Points 20k badge 2x thumb
You can use code similar to this with the image onload technique:

$("input[id^=dp]").datepicker("option", { beforeShowDay: $.datepicker.noWeekends });

This specific code will prevent the selection of weekend days but other date restrictions (eg exclude list of holidays, or Mondays) can be coded to suit your business needs.

rarely use IOL in grid edit but it is possible because grid edit is complex and oftentimes the coding is invasive to QuickBase's authored code.