Hi Everyone,
I have a form where we're retrieving values from a SQL lookup. Some of these fields are date fields. When the date field is null, we get a value of 1/1/1900 on the date field in Forms. I need to clear out these values when that happens, and ideally I would be using JS to accomplish this. However, I cannot seem to get it to work. This is the code I'm using (date fields are using CSS class of 'Date'):
$(document).ready(function () { $('.Date').on('change lookup', ClearDate); function ClearDate() { if ($('.Date input').val()=='1/1/1900'){ $('.Date input').val()=''; } } });
I'm really stuck on this and I don't know where to go from here. Any suggestions are welcome!