Forum Replies Created
-
AuthorPosts
-
August 13, 2021 at 4:06 PM in reply to: โ Only showing certain custom fields on the frontend submission? #30220
John
ParticipantThanks Long. I'm an advanced developer so coding is fine. Just trying to get to grips with how your system works.
In terms of my question re lon/lat for google maps, in this particular scenario, would they not be saved? In fact, let's put it another way.
If I had a submission form that had a google map on it, and an autocomplete address field, and I wanted it to save all the individual fields (postcode, country, etc) separately, at the moment I've got all those fields on the form.
If I were to hide them on the frontend using the admin condition, I'm going to guess they wouldn't be saved as they won't be in the form?
If that's the case, would I need to write a hook after the submission to get the address that is saved in the publicly visible fields, feed that to the Google Maps API, and get all the separate fields again?
Thanks
JohnJohn
ParticipantThanks. I've actually restarted this particular project as I'd tried a few plugins and, as you know, most don't clean up well after themselves so as this is a large long-term project I've reset to scratch. Will test again later.
August 11, 2021 at 2:33 PM in reply to: โ Only showing certain custom fields on the frontend submission? #30147John
ParticipantThanks Long. I'm using the builder at the moment but could get the php code and edit it. So if I do that and put the fields I don't want the users to see on the frontend in the is_admin block, then they will only be visible in the backend but not the frontend? What happens then to the Google Maps integration where it automatically stores the longitude and latitude? If the fields aren't on the front end will they ever be saved? I appreciate I could hide with CSS but that's not ideal.
On a related note, is there a guide to using Elementor (Pro or otherwise) to generate frontend submission forms?
Thanks
-
AuthorPosts