Gravity Forms で gform_post_render 関数を使用して、1 日前を選択するための minDate オプションを使用してカスタム日付ピッカーを作成しました。
http://www.gravityhelp.com/documentation/page/Gform_post_render
週末を除外する方法はありますか? ユーザーが 1 日先の平日のみを選択できるようにしたい。を使用してみましたbeforeShowDay: $.datepicker.noWeekends
が、競合しているようですminDate
ここに私のフォームがあります: http://www.discountdumpsters.com/shop/30-yard-dumpster/
そして、ここに私のコードがあります:
<script type="text/javascript">
jQuery(document).bind('gform_post_render', function(){
// destroy default Gravity Form datepicker
jQuery("#input_1_1").datepicker('destroy');
// create new custom datepicker
jQuery("#input_1_1").datepicker({ defaultDate: '+1d', minDate: '+1d', gotoCurrent: true, prevText: '', showOn: 'both', buttonImage: 'http://www.discountdumpsters.com/wp-content/plugins/gravityforms/images/calendar.png', buttonImageOnly: true });
});
</script>
助けていただければ幸いです...ありがとう!