Hello,
i’m trying to disable some fields inside the registration form. I dont want name/surname/email to be editable. I was trying to build a plugin to do that and hook to to registration_form_created but the hook is not called. My code.
class RegistrationPlugin(IndicoPlugin):
configurable = True
def _registration_form_created(self, *args, **kwargs):
print("_registration_form_created")
def _registration_checkin_updated(self, *args, **kwargs):
print("_registration_checkin_updated")
def _registration_created(self, *args, **kwargs):
print("_registration_created")
def _registration_deleted(self, *args, **kwargs):
print("_registration_deleted")
def _registration_form_created(self, *args, **kwargs):
print("_registration_form_created")
def _registration_form_deleted(self, *args, **kwargs):
print("_registration_form_deleted")
def _registration_form_edited(self, *args, **kwargs):
print("_registration_form_edited")
def _registration_form_wtform_created(self, *args, **kwargs):
print("_registration_form_wtform_created")
def _registration_personal_data_modified(self, *args, **kwargs):
print("_registration_personal_data_modified")
def _registration_state_updated(self, *args, **kwargs):
print("_registration_state_updated")
def _registration_updated(self, *args, **kwargs):
print("_registration_updated")
def init(self):
super().init()
self.connect(registration_form_created, self._registration_form_created)
self.connect(registration_checkin_updated, self._registration_checkin_updated)
self.connect(registration_created, self._registration_created)
self.connect(registration_deleted, self._registration_deleted)
self.connect(registration_form_deleted, self._registration_form_deleted)
self.connect(registration_form_edited, self._registration_form_edited)
self.connect(registration_form_wtform_created, self._registration_form_wtform_created)
self.connect(registration_personal_data_modified, self._registration_personal_data_modified)
self.connect(registration_state_updated, self._registration_state_updated)
self.connect(registration_updated, self._registration_updated)
Any hint?