• Resolved neoset

    (@neoset)


    Hello, I wanted to insert a contact form that could be from JetFormBuilder in the tab created with code and that would work with each of the users sending emails to their email addresses.
    I know that the function that shows the emails of each user is um_user('user_email') but I don’t see a way to use it in the JetFormBuilder forms so that it collects the sending email.

    This is the JetFormsBuilder form:

    Captura

    The problem is that within the profile itself you must collect the email of each user and load it in the header of the contact form and that is where the problem is, how could you do it in this form.
    I know that this is getting into another plugin’s territory but maybe there is someone who has solved it.

    Greetings and thank you.

    • This topic was modified 3 years ago by neoset.
    • This topic was modified 3 years ago by neoset.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support mansurahamed

    (@mansurahamed)

    Hi @neoset,

    You have to check with Jetformbuilder support if they have any action hook to set the email using hooks before rendering the form. You can easily set the email using this code then in the profile assuming you need the email of profile owner

    um_fetch_user(um_profile_id());
    um_user(‘user_email’);

    If its possible to change this email using jQuery, you can do that too after the page is loaded using jQuery and php. Use above code to get the email and jQuery to change the email value.

    Thanks

    Thread Starter neoset

    (@neoset)

    In the end we have come to the same conclusions, yesterday at the last minute I was reviewing the hooks in the JetFormBuilder documentation and I had also thought about changing the email field through javascript.
    The function that I have used to get the email from the profile in members from any type of user is:
    get_the_author_meta('user_email', um_profile_id());

    I will try these solutions, a greeting and thanks.

    Plugin Support Ultimate Member Support

    (@ultimatemembersupport)

    Hi @neoset

    Thanks for letting us know how you resolve the issue.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Insert contact form in tab’ is closed to new replies.