Remove the need for "Location Name"
-
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); ; ?>" />
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Remove the need for "Location Name"’ is closed to new replies.