• Resolved stralim

    (@stralim)


    Trying to use forminator form as a registration form for CME courses. Problem is when the members email address already exist, the form rejects the registration for CME courses.
    This is a membership site as well so existing members are going to sign-up for CME courses.

    Can you advised if there is a solution to this problem? I really want to use fominator as it is so well written.

    • This topic was modified 3 years, 4 months ago by stralim.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Predrag – WPMU DEV Support

    (@wpmudev-support1)

    Hi @stralim,

    Could you please provide us a bit more information about the setup that you currently have and how it should work.

    Is CME Courses a plugin or a service that is connected to your site?
    How is the form supposed to work, when it’s submitted then a new user is being created on your site, is that correct?

    And the problem that you have is that if the user exists the form doesn’t allow registration to happen?

    Are you looking to have this form register a user and add him to course if the email is already used, but for existing users you only want to register them for a course?

    Cheers,
    Predrag

    Thread Starter stralim

    (@stralim)

    Hello Predrag,
    Thank you for your message.
    I am trying to use Forminator as a registration form for courses. Not a registration form for users. So the conflict is that if there is a pre-existing user, the form sends an error message that either that email address has already been used or you are already registered.

    The website has a membership plan with existing doctors & a directory of those doctors. So I am looking for a form app that I can use as. registration form for classes/courses. CME courses is not a plugin.It’s the name of a class/course.

    But you’re right, if the user exist, the registration is not allowed to happen.
    I am looking to have the user register for a course via Forminator even is they already exist as a user.

    Do you know if this is possible?

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @stralim

    Thank you for the information.

    I am afraid it isn’t possible as Forminator uses the native WordPress user registration, so if any user is registered the plugin won’t let you use that email.

    Some alternatives are using regular forms and some Forminator Hooks, for example:

    /**
     * Action called before setting fields to database
     *
     * @since 1.0.2
     *
     * @param Forminator_Form_Entry_Model $entry - the entry model
     * @param int $form_id - the form id
     * @param array $field_data_array - the entry data
     *
     */
    do_action( 'forminator_custom_form_submit_before_set_fields', $entry, $form_id, $field_data_array );

    Forminator also has API documentation on
    https://wpmudev.com/docs/api-plugin-development/forminator-api-docs/

    And an example of how to use it on
    https://wpmudev.com/blog/how-to-build-custom-forminator-add-ons-using-the-developer-api/

    Those are some examples of codes that could be used for custom integration.

    Best Regards
    Patrick Freitas

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @stralim

    I hope you are doing well and safe!

    We haven’t heard from you in a while, I’ll mark this thread as resolved.

    Feel free to let us know if you have any additional questions or problems.

    Best Regards
    Patrick Freitas

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Form declines if user email already exist’ is closed to new replies.