Support Forum ยป User Profile

Forum Replies Created

Viewing 3 posts - 16 through 18 (of 18 total)
  • Author
    Posts
  • JohnJohn
    Participant

    Thanks 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
    John

    in reply to: โœ…Rest API endpoints not working - wp-json/mbb #30219
    JohnJohn
    Participant

    Thanks. 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.

    JohnJohn
    Participant

    Thanks 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

Viewing 3 posts - 16 through 18 (of 18 total)