Hi Bob,
I had something similar happen a while back. The date picker might not be
triggering the change function, or might be preventing the default next action.
I think I solved this by adding a blur() to the completion of the date-pick, so
the field “knew” there was a change and fired the change event.
Dale
On Feb 12, 2017, 3:51 PM -0500, Bob Patin <bob@xxxxxxxxx>, wrote:
I think I need to use a callback, but don’t know how to write this:
I have a date picker widget; when you click the button, the widget opens, and
populates my DATE field with the selected date.
I then want to use that date in a subsequent query; for test purposes, I am
trying to just show an alert.
How do I do this:
$('#datetimepicker').datetimepicker({
pickTime: false,
language: 'en'
});
and when this populates a field whose class = “the date” show an alert?
I tried adding this function:
$('.thedate').change(function(){
alert('test');
});
and it fires when I type into “thedate” but it doesn’t fire when the
datepicker changes the field.
Thanks for any assistance,
Bob Patin
Longterm Solutions
bob@xxxxxxxxxxxxxxxxxxxxx
615-333-6858
FileMaker 9, 10, 11, 12 & 13 Certified Developer
http://www.longtermsolutions.com
-
iChat: bobpatin@xxxxxx
Twitter: bobpatin
—
FileMaker Consulting
FileMaker Hosting for all versions of FileMaker
PHP • Full email services • Free DNS hosting • Colocation • Consulting