diff --git a/uc-people.js b/uc-people.js index 1ceb6e6..99ffbb4 100644 --- a/uc-people.js +++ b/uc-people.js @@ -13,9 +13,9 @@ jQuery(document).ready(function($){ $('#uc_people_lookup_metabox p.howto').text("Person found"); var fields = ['first_name', 'last_name', 'phone', 'email']; fields.forEach(function(el,i,a){ - $('#acf-field-'+el).val(""); + $('#acf-field_'+el).val(""); if( response.hasOwnProperty(el) ){ - $('#acf-field-'+el).val( response[el] ); + $('#acf-field_'+el).val( response[el] ); } }); } else {