GeoDirectory SupportLat/Lon Input Field Validation Bug – GeoDirectory Support https://wpgeodirectory.com/support/topic/latlon-input-field-validation-bug/feed Sun, 12 Apr 2026 11:56:06 +0000 http://bbpress.org/?v=2.5.14-6684 en-US https://wpgeodirectory.com/support/topic/latlon-input-field-validation-bug/#post-7405 <![CDATA[Lat/Lon Input Field Validation Bug]]> https://wpgeodirectory.com/support/topic/latlon-input-field-validation-bug/#post-7405 Fri, 04 Jul 2014 01:49:18 +0000 Greg Mount Here’s an interesting little bug: on the add listing page, a user can enter text in one of the lat/lon fields and it breaks the hell out of the interface. Discovered when a user mistakenly entered a street address in the lat field.

Quick fix would be to validate for numeric input only (including “.” and “-“, of course).

]]>
https://wpgeodirectory.com/support/topic/latlon-input-field-validation-bug/#post-7415 <![CDATA[Reply To: Lat/Lon Input Field Validation Bug]]> https://wpgeodirectory.com/support/topic/latlon-input-field-validation-bug/#post-7415 Fri, 04 Jul 2014 04:58:28 +0000 purpleedge I’m not sure why they need to be there at all. Can they be hidden?

]]>
https://wpgeodirectory.com/support/topic/latlon-input-field-validation-bug/#post-7420 <![CDATA[Reply To: Lat/Lon Input Field Validation Bug]]> https://wpgeodirectory.com/support/topic/latlon-input-field-validation-bug/#post-7420 Fri, 04 Jul 2014 05:59:19 +0000 Greg Mount @purpleedge Good point. Perhaps an option to hide for all but admin users would work. End users don’t need to see lat/lon coordinates in an otherwise pretty clean form.

]]>
https://wpgeodirectory.com/support/topic/latlon-input-field-validation-bug/#post-7421 <![CDATA[Reply To: Lat/Lon Input Field Validation Bug]]> https://wpgeodirectory.com/support/topic/latlon-input-field-validation-bug/#post-7421 Fri, 04 Jul 2014 06:50:39 +0000 Paul option to display or hide from admin would definitely improve the input which has got to be a good move.

]]>
https://wpgeodirectory.com/support/topic/latlon-input-field-validation-bug/#post-7425 <![CDATA[Reply To: Lat/Lon Input Field Validation Bug]]> https://wpgeodirectory.com/support/topic/latlon-input-field-validation-bug/#post-7425 Fri, 04 Jul 2014 08:39:32 +0000 pix3x +1
Have you tried to hide it with CSS “display:none”?

]]>
https://wpgeodirectory.com/support/topic/latlon-input-field-validation-bug/#post-7427 <![CDATA[Reply To: Lat/Lon Input Field Validation Bug]]> https://wpgeodirectory.com/support/topic/latlon-input-field-validation-bug/#post-7427 Fri, 04 Jul 2014 09:28:24 +0000 Vikas Hi,

I have implemented validation there.

]]>
https://wpgeodirectory.com/support/topic/latlon-input-field-validation-bug/#post-7428 <![CDATA[Reply To: Lat/Lon Input Field Validation Bug]]> https://wpgeodirectory.com/support/topic/latlon-input-field-validation-bug/#post-7428 Fri, 04 Jul 2014 09:44:21 +0000 purpleedge Hi Vikas, what does that mean? Can the fields be hidden, or not?

]]>
https://wpgeodirectory.com/support/topic/latlon-input-field-validation-bug/#post-7470 <![CDATA[Reply To: Lat/Lon Input Field Validation Bug]]> https://wpgeodirectory.com/support/topic/latlon-input-field-validation-bug/#post-7470 Fri, 04 Jul 2014 21:46:52 +0000 Paolo @Vikas can you please also add unique classes or better IDs to the html of the add listing form?

Now every row has an identical class and make’s it impossible to hide with css.

This :


<div class="required_field geodir_form_row clearfix">
					<label></label>
					<input>
					<span class="geodir_message_note"></span>
										<span class="geodir_message_error"></span> 
									 </div>

Should be :


<div <strong>id="geodir_lat_input"</strong> class="required_field geodir_form_row clearfix">
					<label></label>
					<input>
					<span class="geodir_message_note"></span>
										<span class="geodir_message_error"></span> 
									 </div>

This way we could use #geodir_lat_input {display :none;}

to fix this problem simply and quickly…

I’ve added this task in the project maanger too.

Thank you,

]]>
https://wpgeodirectory.com/support/topic/latlon-input-field-validation-bug/#post-7475 <![CDATA[Reply To: Lat/Lon Input Field Validation Bug]]> https://wpgeodirectory.com/support/topic/latlon-input-field-validation-bug/#post-7475 Fri, 04 Jul 2014 22:37:09 +0000 Greg Mount @paolo +1 for this. An even better solution would be to remove the fields for front end users. I doubt they will ever need to enter lat/lon coordinates, so why present the fields?

]]>
https://wpgeodirectory.com/support/topic/latlon-input-field-validation-bug/#post-7477 <![CDATA[Reply To: Lat/Lon Input Field Validation Bug]]> https://wpgeodirectory.com/support/topic/latlon-input-field-validation-bug/#post-7477 Fri, 04 Jul 2014 22:44:07 +0000 directory Hi Greg,

I am not sure if removing the lat/long fields is a good idea. I think many Non-US users will need this option but I may be wrong.

]]>