This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
takeLatestCancelablePerKey | |
Works like `takeLatest`, but can filter and cancel tasks based on a unique identifier. | |
Useful if you have multiple unique task ids firing off the same action but need them to be cancelable | |
and fireable seperately. | |
Code Sandbox example: https://codesandbox.io/s/distracted-faraday-gjz40 | |
*/ | |
import { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Note that this does NOT validate server side. | |
jQuery(document).on('gform_post_render', function($) | |
{ | |
//#input_[form_id]_[field_id] | |
//Get Date Field Input | |
var $dateField = jQuery( "#input_16_6" ); | |
var date = new Date($dateField.val()); | |
//Get Weekday Time Dropdown fields | |
var $mondayTimes = jQuery( "#field_16_7" ); |