How to add fake field and inputed to another field

I want to create a simple location coordinate field
I have created 2 fields “latitude” and “longitude”.

How to make a custom fake field in submit form called “Coordinate”, so user can enter value like “-7,76879,102.76876”. also hide the real “latitude” and “longitude” fieldd.

When the form submmited, on the background it will be separately inputed in “latitude” and “longitude” field we created before.|

I dont want to use hivepress geolocation for this as it only for simplicity and internal use

Hi,

If you don’t plan to use Geolocation, you can achieve this with custom attributes instead. You can add a Number attribute and allow min/max values, similar to how latitude and longitude work (for example, longitude ranges from –180 to 18*), as well as enable decimal values if needed.

If you are using Geolocation and mean allowing users to manually enter coordinates, this is also possible, but it would require custom development, since the latitude and longitude fields are currently implemented as hidden fields, and their field types would need to be changed via custom code.

Hope this helps.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.