I have been working with Safecracker/GeoFinder and the entries created directly from the backend (without safecracker) display perfectly fine in the Geofinder Results, but entries created through the form on my site (with safecracker) won't show up in GeoFinder.

Is there anything I have to do to get entries created through safecracker to display in GeoFinder Results that I may be missing?

Safecracker 2.1 (Updated):


    <input type="hidden" id="trainer_longitude" name="trainer_longitude" value="{trainer_longitude}">
    <input type="hidden" id="trainer_latitude" name="trainer_latitude" value="{trainer_latitude}">

    <div class="formsection clearfix">
    <label for="title">Name</label>
    <span class="directions">The name to be displayed in your listing.</span>
    <input type="text" name="title" id="title" value="{title}" size="50" maxlength="100">

    <div class="formsection clearfix">
    <label for="url_title">URL Title</label>
    <span class="directions">Put a dash between first and last name. example: "john-smith"</span>
    <input type="text" name="url_title" id="url_title" value="{url_title}" maxlength="75" size="50">

    <div class="formsection trainer-photo clearfix">
        <label for="trainer_photo">Photo</label>
        <span class="directions">The photo to be displayed in your listing.</span>
        <input type="file" name="trainer_photo" id="trainer_photo" value="{trainer_photo}">

    <div class="formsection clearfix">
        <label for="trainer_email">Email Address</label>
        <span class="directions">The email address to be displayed in your listing.</span>
        <input type="text" name="trainer_email" id="trainer_email" value="{trainer_email}">

    <div class="formsection clearfix">
        <label for="trainer_rate">Rate</label>
        <span class="directions">The rate to be displayed in your listing.</span>
        <input type="text" name="trainer_rate" id="trainer_rate" value="{trainer_rate}">

    <div class="formsection clearfix">
        <label for="trainer_phone">Phone Number</label>
        <span class="directions">The phone number to be displayed in your listing.</span>
        <input type="text" name="trainer_phone" id="trainer_phone" value="{trainer_phone}">

    <div class="formsection clearfix">
        <label for="trainer_address">Street Address</label>
        <span class="directions">This will NOT be displayed in your listing. Only for search Purposes.</span>
        <input type="text" name="trainer_address" id="trainer_address" value="{trainer_address}">

    <div class="formsection clearfix">
        <label for="trainer_city">City</label>
        <span class="directions">The city to be displayed in your listing.</span>
        <input type="text" name="trainer_city" id="trainer_city" value="{trainer_city}">

    <div class="formsection clearfix">
        <label for="trainer_state">State</label>
        <span class="directions">The state to be displayed in your listing.</span>
        <select name="trainer_state">
                <option value="{option_value}"{selected}>{option_name}</option>

    <div class="formsection clearfix">
        <label for="trainer_zip">Zip Code</label>
        <span class="directions">The zip code to be displayed in your listing.</span>
        <input type="text" name="trainer_zip" id="trainer_zip" value="{trainer_zip}">

    <div class="formsection clearfix">
        <label for="trainer_about">Trainer Information</label>
        <span class="directions">Information about the trainer to be displayed in your listing.</span>
        <textarea id="trainer_about" name="trainer_about" dir="{text_direction}" rows="{rows}">{trainer_about}</textarea>

    <div class="formsection clearfix">
        <label for="trainer_certifications">Certifications</label>
        <span class="directions">Your certifications to be displayed in your listing. Separate with commas.</span>
        <input type="text" name="trainer_certifications" id="trainer_certifications" value="{trainer_certifications}">

    <div class="formsection clearfix">
        <label for="trainer_areas_of_expertise">Areas of Expertise</label>
        <span class="directions">Your areas of expertise to be displayed in your listing. Separate with commas.</span>
        <textarea type="text" name="trainer_areas_of_expertise" dir="{text_direction}" id="trainer_areas_of_expertise">{trainer_areas_of_expertise}</textarea>

    <div class="formsection clearfix">
        <label for="trainer_specials">Specials</label>
        <span class="directions">Your specials to be displayed in your listing. Separate with commas.</span>
        <textarea type="text" name="trainer_specials" dir="{text_direction}" id="trainer_specials">{trainer_specials}</textarea>

    <div class="formsection clearfix">
        <label for="trainer_gym_affiliates">Gym Affiliates</label>
        <span class="directions">Your gym affiliates to be displayed in your listing. Separate with commas.</span>
        <textarea type="text" name="trainer_gym_affiliates" dir="{text_direction}" id="trainer_gym_affiliates">{trainer_gym_affiliates}</textarea>


    <div id="thankyousave">
        <input type="submit"  class="small red button radius" name="save" value="Save Settings" />

and here is the fields in the backend: http://d.pr/KeOa

  • Do the entries have different statuses? Or future dated entry dates? Post your code and versions.
    – Anna_MediaGirl
    Commented Mar 12, 2013 at 0:53
  • @Anna_MediaGirl I edited and added my safecracker form, I'm using safecracker 2.1 and geofinder 2.2. After looking at it further, the longitude and latitude fields end up being blank, so I think thats why its not displaying in the search results but the page is being created fine. any idea on how to pass the values for those 2 things to EE so they dont end up being blank?
    – Joe Bobby
    Commented Mar 12, 2013 at 16:31

1 Answer 1


From what I can tell your hidden input fields for longitude and latitude may not be correctly named.

Try changing to:

 <input type="hidden" name="trainer_longitude" value="{trainer_longitude}" />
 <input type="hidden" name="trainer_latitude" value="{trainer_latitude}" />
  • I now have what you entered above, but with hidden it still doesnt populate the fields so what i did was change them to text, and i entered the values for both to see if it would work and it worked fine.. so just need to figure out a way to populate those fields before the form gets submitted
    – Joe Bobby
    Commented Mar 13, 2013 at 1:49
  • You'll need to use another addon for the GeoCoding. Try GeoTagger. It says it works with SafeCracker: devot-ee.com/add-ons/geotagger
    – Anna_MediaGirl
    Commented Mar 13, 2013 at 15:33
  • I updated the main post code but longitude and latitude is still coming up as empty.. really confused since I'm not sure whats incorrect with safecracker/geotagger.. is there anything you see that is incorrect?
    – Joe Bobby
    Commented Mar 13, 2013 at 18:33
  • Did you change the field types for your longitude and latitude fields to Geotagger fields? Make sure you have "Auto-tag" set for the Geotagger mode on the field settings. Make sure you map the field latitude and longitude fields. Go through the docs for adding a new field step by step: mightybigrobot.com/docs/geotagger
    – Anna_MediaGirl
    Commented Mar 13, 2013 at 20:53
  • my settings have been set up like this d.pr/lmFy Is there anything else I could check?
    – Joe Bobby
    Commented Mar 14, 2013 at 3:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.