Jump to content

Add a new field to the user registration form from an application.


Recommended Posts

Hello,

I want to create a small application to validate some invitation codes, for customers, in the registration form. But I don't know how to link the form field of my application to the registration form. If you could give me some advice or hints, I would be very grateful.

Best regards and Merry Christmas to all

Link to comment
Share on other sites

You need to add a hook to \IPS\core\modules\front\system\register::buildRegistrationForm(), make your validation and then you can "save" the data via the memberSync extension.

	public static function buildRegistrationForm( $postBeforeRegister = NULL )
	{
		$form = parent::buildRegistrationForm( $postBeforeRegister );

		//add your fields

		return $form;
	}

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...