Verto Posted December 23, 2023 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
Adriano Faria Posted December 23, 2023 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
Verto Posted December 23, 2023 Author 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
bernhara Posted December 24, 2023 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.
Recommended Posts