I am in need of assistance with limiting the time range on the Date/Time field.
Looking for the time to be every 2 hours from 8am - 4pm.
Time
8am
10am
12pm
2pm
4pm
This is the code I used:
NWF$("select[name$='Hours'] option").each(function(){ if(NWF$(this).val().match(/^(([0-7,9,11]|12) AM)|(([1,3,5-9]|1[0-1]) PM)/g)) { NWF$(this).remove(); }});
The above code does not yield the desired results. It still includes 11am.