Skip to content

Commit d44d244

Browse files
committed
gpld-populate-new-minimum-date-into-linked-date-field.js: Fixed an issue with default value of field notgetting used to apply minimum date.
1 parent 59cc849 commit d44d244

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gp-limit-dates/gpld-populate-new-minimum-date-into-linked-date-field.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const sourceFieldId = 25; // Replace with the ID of the source field (Field A)
1414

1515
// Initialize field events on form render.
1616
document.addEventListener( 'gform/post_render', (event) => {
17-
const formId = event.detail.formId; // Get the form ID from the event
17+
const formId = event.detail.formId;
1818
const $field = getSourceField(formId, sourceFieldId);
1919
triggerFieldEventsIfValueExists($field);
2020
});

0 commit comments

Comments
 (0)