Support

Account

Home Forums Backend Issues (wp-admin) Programmatically update google map field in admin Reply To: Programmatically update google map field in admin

  • Hi Clément,

    I would guess the reason the map isn’t updated is because it does not recognise when the field is being filled programmatically. It might be solved by triggering the enter button after you’ve filled the field.

    Try something like this:

    var e = jQuery.Event("keydown");
    e.which = 50; // # Some key code value
    $("input").trigger(e);

    Are the values saved when you’re saving the post at least?