Support

Account

Forum Replies Created

  • Hi, thanks for your answer.

    I tried it, nothing happen. I also tried .submit() on the input, but it submits the whole post. And I tried to trigger a click on the link “find-location”, but not working.

    The address is filled with GPS coordinates, when I pressed enter myself it does work (it’s changing the location).

    Screenshots:
    After programmatically adding the gps coordinates:Google map field before I pressed Enter

    After I pressed ‘enter’ (myself, not programmatically) :Google map field after I pressed Enter

    Would be a way to do it through acf.add_filter(‘google_map_args’) ?

  • Hi Jonathan, thanks for the answer.

    I tried the code below, but the trigger doesn’t work (does nothing).

    This is my actual code (useful fragment):

    $(".acf-google-map .no-value input").val(latitude+" "+longitude).focus();
    var e = jQuery.Event("keydown");
    e.which = 13; // # key code value for 'Enter'
    $(".acf-google-map .no-value input").trigger(e);

    The value is not saved when i’m saving the post.

Viewing 2 posts - 1 through 2 (of 2 total)