Home Forums Backend Issues (wp-admin) select acf/load_field delay ajax request


select acf/load_field delay ajax request

  • Hello,

    I am dealing in the wp-admin with the acf/load_field using an UI stylized select with AJAX to lazy load choices.

    I would like to know if is there any way to delay the request from admin-ajax.php. I’m having some issues because my API REST service takes a second to response and the keyup/keydown ajax requests finishes sometimes canceled by admin-ajax.php. Any clue?


    Thanks in advance.

  • This is only a guess, but I suspect what is happening…. you start typing in the field, you enter one character and ACF begins the request, then you enter another character. The results of the first request would no longer be valid so ACF cancels that request in favor of the new one. This continues until you stop entering characters in the field.

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

You must be logged in to reply to this topic.