Skip to content

Commit 9ad62ec

Browse files
authored
gpld-default-to-min-date.js: Migrated.
1 parent 56e6249 commit 9ad62ec

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed
+3-16
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
11
/**
2-
* Gravity Perks // GP Limit Dates // Default value to the minimum date allowed
3-
* https://gravitywiz.com/documentation/gravity-forms-limit-dates/
4-
*
5-
* Instructions:
6-
* 1. Install our free Custom Javascript for Gravity Forms plugin.
7-
* Download the plugin here: https://gravitywiz.com/gravity-forms-code-chest/
8-
* 2. Copy and paste the snippet into the editor of the Custom Javascript for Gravity Forms plugin.
9-
* 3. Update `formId` variable accordingly
2+
* We're no longer using the experimental folder for experimental snippets. 🚧
3+
* You can now find the snippet here:
4+
* https://github.com/gravitywiz/snippet-library/blob/master/gp-limit-dates/gpld-default-to-min-date.js
105
*/
11-
var fieldId = 5;
12-
13-
/* Not ideal to use the setTimeout, but it helps make sure the datepicker is ready to go. */
14-
setTimeout( function () {
15-
jQuery( '#input_GFFORMID_' + fieldId )
16-
.val( GPLimitDates.getDateValue( '', 'minDate', fieldId, GFFORMID, GPLimitDatesDataGFFORMID ) )
17-
.change();
18-
} );

0 commit comments

Comments
 (0)