PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Changing form values before User Registration?

  1. Is there a hook that I can use to change values before the User Registration function fires? Specifically - I have a case where I want to change the value of a field before the Registration Condition is checked in that field.

    Alternatively, if I could do multiple conditionals on the registration condition (similar to all the other conditionals on form fields) that would be great.

    Thanks!

    Posted 11 years ago on Thursday June 20, 2013 | Permalink
  2. David Peralty

    Can you give us more information on what you mean please? I am not sure exactly what you are trying to do, and can't give you a suggestion without knowing more.

    Posted 11 years ago on Thursday June 20, 2013 | Permalink
  3. In my user registration page, I've got a registration condition:
    Register the user if 'forum-signup' (single line text field) is not 'NULL'. I change this field with dynamic population when someone goes to the form to do a forum signup.

    If they go to the form for something else, I've got a radio button ('register'), that if they select yes, I want to use a hook to set 'forum-signup' to 'on-page' or something like that. It needs to happen before the registration condition is evaluated.

    Posted 11 years ago on Thursday June 20, 2013 | Permalink
  4. Alternatively, If the registration condition had an 'any' or 'all' selector, and I could select 'any of the following match':
    'forum-signup' is not 'NULL'
    'register' is 'Yes'

    I'd be happy enough. I'd still rather have a function that changes 'forum-signup' to 'on-page' if 'register' is 'Yes' - but it has to happen before the registration condition is evaluated.

    Posted 11 years ago on Thursday June 20, 2013 | Permalink
  5. I thought I would bump this one and see if anyone has any insight. Thanks!

    Posted 11 years ago on Monday June 24, 2013 | Permalink
  6. Do any of the new hooks in 1.7.6 help with this? There's got to be a way to modify a field before the user registration condition is checked.

    Posted 11 years ago on Wednesday June 26, 2013 | Permalink
  7. Is there a hook that I can use to change the user registration conditional?
    A. Would you like to make a user account?
    Yes / No
    b. Would you like to join the forums?
    Yes / No
    Register the user if make-user-account is not No

    If someone says that they'd like to join the forums, I need to change make-user-account = 'yes'.

    Posted 11 years ago on Tuesday July 23, 2013 | Permalink
  8. Handling via new support.

    Posted 11 years ago on Tuesday July 23, 2013 | Permalink

This topic has been resolved and has been closed to new replies.