• Resolved vysakhit

    (@vysakhit)


    I have installed forminator free plugin. In that I have 3 fields to fill First Name, Last Name and Email Id. If the client fill the first name and last name then the email id field should auto fill in the format of [email protected].

    Is there any way to do this

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @vysakhit

    One way to do this would be via a javascript snippet like this:

    
    <script>
    let timer;
    const input = document.querySelector('#forminator-field-last-name-1');
    input.addEventListener('keyup', function (e) {
        clearTimeout(timer);
        timer = setTimeout(() => {
            email.value = document.getElementById("forminator-field-first-name-1").value + document.getElementById("forminator-field-last-name-1").value + "@mydomain.com";
        }, 1000);
    });
    </script>

    Here’s a guide on some basic ways to add javascript to your site.

    This current code assumes that:
    – You’re using the Forminator Name field with First and Last name fields enabled
    – You’re using the Forminator Email field
    – These fields are the first of their type in the form

    You can change the element IDs as needed for your particular form.
    If you still need assistance, please link to a page with your form.

    Hope this helped!

    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @vysakhit

    I hope you’re well today!

    Forminator doesn’t currently have a feature/tool for that built-in so it would require some additional custom code.

    The solution suggested by @aakash8 above (thanks for jumping in!) looks fine and should do the trick for you.

    Best regards,
    Adam

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @vysakhit ,

    We haven’t heard from you for a week now, so it looks like you don’t have any more questions for us.

    Feel free to re-open this ticket if
    needed.

    Kind regards
    Kasia

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Autofill’ is closed to new replies.