I have a form with many fields one of which is a lookup referencing another form to populate a Dropdown field.
I'm using a Modal Popup to access the source form for my lookup to capture new entries if required.
Unfortunately the Lookup field doesn't refresh after submitting a new value from the Modal Popup (Ajax submit). Is there a hook I can use to refresh only the Lookup field after a new entry was added via the Modal popup form?
I don't have a great example, but it's going to be something like:
$(document).ajaxComplete(function(){
$("#mydiv").load(location.href + " #mydiv");
});
Where #mydiv represents the ID of the form field you want to "reload" without a page refresh.
Thanks very much , where i can put this code ?
Please login or Register to submit your answer