Jump to content

Recommended Posts

Posted

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

Posted

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;
	}

 

Posted

Thank you very much for your help. I am very grateful to you.

I will see if I can do it correctly. I will let you know.

Thanks again and best regards

Posted
22 hours ago, Verto said:

I will see if I can do it correctly. I will let you know.

Since we have the same need, if you could share your final code, it will be very interested for us.

  • Recently Browsing   0 members

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