Title: Admin post edit form
Last modified: June 15, 2023

---

# Admin post edit form

 *  Resolved [Mario Beach](https://wordpress.org/support/users/mariobeach/)
 * (@mariobeach)
 * [3 years ago](https://wordpress.org/support/topic/admin-post-edit-form/)
 * Any way to get it to work with fields in the admin post edit screens?
 * I tried adding it to admin_enqueue_scripts but it must be missing something else
   as it is not triggered for the ACF field I added the ID for. I think it would
   be a nice feature to be able to use it in the backend too.
 *     ```wp-block-code
       add_action('admin_enqueue_scripts', 'simple_address_autocomplete_enqueue_google_maps_api_key', 10);
       ```
   

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

 *  Plugin Author [Raza Khadim](https://wordpress.org/support/users/razakhadim/)
 * (@razakhadim)
 * [3 years ago](https://wordpress.org/support/topic/admin-post-edit-form/#post-16826394)
 * [@mariobeach](https://wordpress.org/support/users/mariobeach/) not really aimed
   for ACF but it should work. You will have to localize the script as well. Add
   this to your functions.php or through code snippet plugin:
 *     ```wp-block-code
       function enqueue_simple_address_autocomplete() {
             // Enqueue the necessary scripts for Simple Address Autocomplete
           wp_enqueue_script('simple_address_autocomplete_js_scripts', plugins_url('simple-address-autocomplete/public/js/simple-address-autocomplete-public.js'));
       	wp_localize_script('simple_address_autocomplete_js_scripts', 'simple_address_autocomplete_settings_vars', array(
       			'simple_address_autocomplete_google_maps_api' => get_option('simple_aa_options_google_maps_api_key'),
       			'simple_address_autocomplete_country_selected' => get_option('simple_aa_options_country', 'option'),
       			'simple_address_autocomplete_form_field_ids' => get_option('simple_aa_options_field_ids'),
       			'simple_address_autocomplete_bias_coordinates' => get_option('simple_aa_options_bias_coordinates'),
       			'simple_address_autocomplete_restriction_type' => get_option('simple_aa_options_restriction_type'),
       		));
       }
   
       add_action('admin_enqueue_scripts', 'enqueue_simple_address_autocomplete');
       ```
   
 * Also, when testing I noticed a bit of lag with ACF fields. Maybe couple of clicks
   but did work. Maybe the site I tested is slow or ACF when working with this plugin.
   
   I hope this helps, let me know if there are any further issues.
 * Thanks
 *  Plugin Author [Raza Khadim](https://wordpress.org/support/users/razakhadim/)
 * (@razakhadim)
 * [2 years, 12 months ago](https://wordpress.org/support/topic/admin-post-edit-form/#post-16849925)
 * [@mariobeach](https://wordpress.org/support/users/mariobeach/) hope this was 
   resolved. I am going to close it for now but if there are any issues let me know.
   Thanks

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

The topic ‘Admin post edit form’ is closed to new replies.

 * ![](https://ps.w.org/simple-address-autocomplete/assets/icon-256x256.png?rev=
   2752318)
 * [Simple Address Autocomplete](https://wordpress.org/plugins/simple-address-autocomplete/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-address-autocomplete/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-address-autocomplete/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-address-autocomplete/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-address-autocomplete/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-address-autocomplete/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Raza Khadim](https://wordpress.org/support/users/razakhadim/)
 * Last activity: [2 years, 12 months ago](https://wordpress.org/support/topic/admin-post-edit-form/#post-16849925)
 * Status: resolved