Skip to content

Commit 2f5a5b2

Browse files
sbassahspivurno
andauthored
Automatically Show Datepicker for Linked Date Field (Minimum Date)
* Automatically Show Datepicker for Linked Date Field (Minimum Date) * Update gpld-automatically-show-datepicker-for-linked-date-field-min.js * Update gpld-automatically-show-datepicker-for-linked-date-field-min.js * Update gpld-automatically-show-datepicker-for-linked-date-field-min.js Co-authored-by: David Smith <david@gravitywiz.com>
1 parent f366721 commit 2f5a5b2

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/**
2+
* Gravity Perks // Limit Dates // Automatically Show Datepicker for Linked Date Field (Minimum Date)
3+
* https://gravitywiz.com/documentation/gravity-forms-limit-dates/
4+
*
5+
* When a date selected in Field A modifies the minimum date in Field B,
6+
* this snippet will automatically open the datepicker in Field B after
7+
* the date has been selected in Field A.
8+
*
9+
* Instructions:
10+
*
11+
* 1. Install this snippet with our free Custom JavaScript plugin.
12+
* https://gravitywiz.com/gravity-forms-custom-javascript/
13+
*/
14+
gform.addAction( 'gpld_after_set_min_date', function( $input, date ) {
15+
$input.datepicker( 'show' );
16+
} );

0 commit comments

Comments
 (0)