You can do so with connect.close(); in your onSuccess callback function to close the widget after the successful enrolment; will make this the default behaviour.
![Team Mono avatar](https://static.intercomassets.com/avatars/4400343/square_128/Mono-Favicon-210921-SO-1678719207.jpg)
Written by Team Mono
Updated over a week agoYou can do so with connect.close(); in your onSuccess callback function to close the widget after the successful enrolment; will make this the default behaviour.