Support

Account

Home Forums Backend Issues (wp-admin) How can I send an additional field during ajax requests? Reply To: How can I send an additional field during ajax requests?

  • @ayama Yeah it should be pretty simple. Just find this line and copy it for each field you need to pass in:

    data.product_id = jQuery(this).closest('.acf-row').find('td.acf-field-589cc27c617ab select').val();

    To keep things simple you probably want to pass all 3 values all the time, then make the serverside logic based on the field that ACF is querying for. Hope that makes sense.