[Gelöst] Upload of address and coordinates with Cred
This support ticket is created vor 3 Jahre, 4 Monate. There's a good chance that you are reading advice that it now obsolete.
Dies ist das technische Support-Forum für Toolset – eine Suite von Plugins zur Entwicklung von WordPress-Websites ohne PHP-Pogrammierung.
Jeder kann in diesem Forum lesen, aber nur Toolset-Kunden können darin Beiträge veröffentlichen. Der Toolset-Support arbeitet 6 Tage pro Woche, 19 Stunden pro Tag.
Hi,
If I fill the "Address" field in Cred with an address or click the "Use my location" link, the coordinates are transferred to the "Latitude" and "Longitude" fields.
Question 1:
In addition to the "Address" field, can I also upload the fields with the coordinates and process them in my frontend?
I need an address and the coordinates in the front end of my website.
Question 2: How can I do this? Are there shortcodes for the coordinate fields?
Hello. Thank you for contacting the Toolset support.
If I fill the "Address" field in Cred with an address or click the "Use my location" link, the coordinates are transferred to the "Latitude" and "Longitude" fields.
==>
Do you mean that when you click on "Use my location" link, you want to display the current location address instead of the "Latitude" and "Longitude" co-ordinates?
I'm not sure why you want to upload/submit the "Latitude" and "Longitude" fields as addon field
because once you save the address field you can display the address text or "Latitude" and "Longitude" values using the Types shortcode.
Hi,
I am not sure that you understood my question.
I am concerned with the following problem: If you do not enter a text address in the "address" field or if you do not use the "Use my location" link, the following value is transferred to the "address" field:
{latitude, longitude}.
I would like the "address" field not to be displayed if {latitude, longitude} has been adopted there.
I need more information here:
- Where you added the address field? On Toolset form - right? If yes:
- You have additional fields available with your form {latitude, longitude} to store the {latitude, longitude} values, correct? Do you have one field that stores the {latitude, longitude} or separate field for lat and lon?
- As I understand if you do not add anything to the address field it should remain hidden - correct? That means, you will have field available before the address field where user can input the {latitude, longitude} - correct?
Hi,
I understood that. But can I not hide the display of the Fed "Adress" in the frontend with the application of the function "conditional display" if the field contains the content {Latitude, Longitude}?
I can see you are talking about this form: hidden link
You are talking about the address field "Genaue Lage des Platzes".
The thing is that Toolset form conditional display works based on the other field content and based on that you can show hide the field. You can not check the fields own value. Having said that, lets say you have filed X and Y. if X filed have value 111 then and then you want to display the Y field. This is how the forms conditional display works.
=> https://toolset.com/documentation/user-guides/front-end-forms/cred-conditional-display-engine/
And until and unless the user will enter either address field text or lat-lon value to the address field "Genaue Lage des Platzes" we can not determine what user is going to enter before the user input anything.
Das Forum „Toolset Professioneller Support“ ist für neue Themen und Antworten geschlossen.