Hello
We are still looking at your answer to display the map.
In the meantime, I have another question.
From the consultant or agency page, on the click button
- we would like user sent to the contact form page with the name of the consultant already selected.
- also, we would like user to get their message sent directly to the consultant listed but without showing the listed consultant email address on the url.
Please could you tell us how to do that ?
Currently the site is built on WP with ocean pro / elementor & toolset.
What would be the best way to create this form contact ? using a plugin ? Directly with Elementor ?
Thank you for your help,
Kind regards
Marie
Hello,
I suggest you try these:
1) Create two custom post types:
- consultant
- contact
Setup one-to-many relationship between post types "consultant" and "contact"
https://toolset.com/documentation/post-relationships/
2) Setup a custom email field "consultant-email", register it to both post type "consultant" and "contact"
https://toolset.com/documentation/user-guides/using-custom-fields/
Edit each "consultant" post, fill an email address in field "consultant-email"
3) create a Toolset form for creating "contact" post, display the parent "consultant" selector and "consultant-email" field, see our document:
https://toolset.com/documentation/post-relationships/selecting-parent-posts-using-forms-create-child-items/
In the form content, you can preset the default value of parent "consultant" selector as current "consultant" post by setup attribute "value", for example:
[cred_field field="@consultant-contact.parent" class="form-control" output="bootstrap" select_text="--- not set ---" value="[wpv-post-id]"]
Same as above, you can setup the default value of field "consultant-email", like this:
[cred_field field="consultant-email" force_type="field" class="form-control" output="bootstrap" value="[types field='consultant-email' output='raw'][/types]"]
And add an email notification on field "consultant-email"
https://toolset.com/documentation/user-guides/automated-email-notifications-with-cred/
See screenshot:
hidden link
4) then display above form in the single "consultant" post.