• Resolved ivangneiding

    (@ivangneiding)


    Hi.
    I’m trying to config a form to register on website but I have two issues:

    1 – I would like to use two meta on “username” to being auto generated by “first name” and “last name”. On the setting I only can choose one of them not both, that creates a big problem because users can have same first or last name. I would like a way to make username automatically with no chances of being duplicated (and I’m not sure if using e-mail as username is a good idea since user can change it later). Is there any way to do that in free version of plugin?

    2 – I set up to user receive an activation link and automatically login after activation. The problem is that in activation massage the email tell user that he will receive another email with login data, and this is not true since I selected “none” to the “Activation Email”. How can I edit this message?

    Thanks in advance.
    Regards.

    • This topic was modified 2 years, 12 months ago by ivangneiding.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @ivangneiding

    I hope you are doing well.

    1 – I would like to use two meta on “username” to being auto generated by “first name” and “last name”. On the setting I only can choose one of them not both, that creates a big problem because users can have same first or last name. I would like a way to make username automatically with no chances of being duplicated (and I’m not sure if using e-mail as username is a good idea since user can change it later). Is there any way to do that in free version of plugin?

    I am afraid it isn’t possible out of the box in Forminator, a workaround is using a hidden field and generating it when the user finishes typing the first and last name.

    This is an example that you can use:
    https://gist.github.com/patrickfreitasdev/349097cb9dadcc63d29c591cd00f5c63

    You can use it as a mu-plugin: https://wpmudev.com/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins

    To use it:

    Create a hidden field, https://monosnap.com/file/yx6inHLftP9uYscSt0QhvyHQFEzgXg and set this hidden field as a username.

    Set your form to load from Ajax: https://monosnap.com/file/gV3yfuIMDcjjue77rCkRGnY4pc9Ttc update the script line 13 to match your form id.

    https://monosnap.com/file/NFfi5hnnMHB6Q2i1QLHjTRldNatLJ9

    Important note: This is only the begging of the code, if you would like to add some extra validations or remove any possible blank space or special character you will need to extend the code.

    2 – I set up to user receive an activation link and automatically login after activation. The problem is that in activation massage the email tell user that he will receive another email with login data, and this is not true since I selected “none” to the “Activation Email”. How can I edit this message?

    Could you send a screenshot of your form configuration and we can try to replicate it to verify if any workaround is possible or it would be a bug?

    Best Regards
    Patrick Freitas

    Thread Starter ivangneiding

    (@ivangneiding)

    Hello @wpmudevsupport12

    Thanks for you fast reply. I will take a look and try to apply your suggestion for the question #1 and I will keep you updated about it as soon as I can handle this.

    For now I’m writing to send you screenshot regarding confirmation email configuration on “User Account Activation”. You can see screenshot here.

    And here is the screenshot of the message I receive with confirmation link. Look right below the link there’s a message (in my native language pt_BR) telling the user that he will receive another message with login info.
    It’s this highlighted message I would get rid, since he wont receive that email.

    Thank you.
    Regards.

    Plugin Support Nebu John – WPMU DEV Support

    (@wpmudevsupport14)

    Hi @ivangneiding,

    Thanks for sharing the screenshot, I was able to replicate the mentioned issue. I have now reported this to the Forminator team as a confirmed bug and a fix for this will be rolled out in one of our upcoming updates.

    Thank you for bringing this to our notice.

    Kind Regards,
    Nebu John

    Thread Starter ivangneiding

    (@ivangneiding)

    Hello @wpmudevsupport12

    I followed your tutorial and worked like a charm. Thank you very much, you are the best.

    @wpmudevsupport14 thank you! I will be waiting for bug fixes.

    Since question #1 is now solved and issue #2 need a bug fixing on plugin, I will mark this topic as solved.

    Thank you guys for helping me, I really appreciate that.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Problem with register form (username and activation message)’ is closed to new replies.