• Resolved Ynasr

    (@ynasr)


    Hi there,

    I don’t quite understand why events-manager forces you to specify a “location name.” FYI – I am referring to the “em-location-data-name” field. Apparently the best way to go about this is to use jQuery to fill in that field with something from one of the other user fields.

    I thus have added the following jquery, but it is still giving me an error message “Location name is required.” Is there anyway to disable this function all together. Or could you let me know what might be wrong with the query below?

    1st thing i have tried:

    <script>
    		$(document).ready(function() {
                          $('#location-address').change(function() {
                          $('#location_name').val($('#location-address').val());
                           });
                     });
    </script>	
    
    <input id="location-name" type="text" name="location_name"  />
    <input id="location-address" type="text" name="location_address" value="<?php echo esc_attr($EM_Location->location_address, ENT_QUOTES); ; ?>" />

    2nd thing i tried:

    <script>
    $( '#location-address' )
      .keyup(function() {
        var value = $( this ).val();
        $( '#location-name' ).text( value );
      })
      .keyup();
    </script>
    
    <input id="location-name" type="text" name="location_name"  />
    <input id="location-address" type="text" name="location_address" value="<?php echo esc_attr($EM_Location->location_address, ENT_QUOTES); ; ?>" />

    https://www.ads-software.com/plugins/events-manager/

Viewing 1 replies (of 1 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    sorry but I’m afraid that this is required at the moment and you might need to hack into the code to make this work under classes/em-location.php or hook into em_location_validate filter.

Viewing 1 replies (of 1 total)
  • The topic ‘Remove the need for "Location Name"’ is closed to new replies.