Question T3470
Visible to All Users

Unregister an event

created 5 years ago

Currently I am grabbing an instance of the survey and registering an event specifically the onAfterRenderPage. Is there a way to unregister this?

Answers approved by surveyjs Support

created 5 years ago

Hello Eric,
Sure,
survey.onAfterRenderPage.clear(); will remove all registered functions for an event. It works for any event.

Thank you,
Andrew
SurveyJS Team