Verto Posted December 23, 2023 Share Posted December 23, 2023 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 bernhara 1 Link to comment Share on other sites More sharing options...
Adriano Faria Posted December 23, 2023 Share Posted December 23, 2023 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; } Verto 1 Link to comment Share on other sites More sharing options...
Verto Posted December 23, 2023 Author Share Posted December 23, 2023 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 Link to comment Share on other sites More sharing options...
bernhara Posted December 24, 2023 Share Posted December 24, 2023 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. Link to comment Share on other sites More sharing options...
Recommended Posts