How to let your users delete their own account

It’s possible, but if a user is invited but not activated, they will never be able to delete their account themselves, since they have never logged into the application.
Allowing only activated users to delete their own accounts is 100% logic.

Regarding the script removal in favor of a page redirection: yes, that makes sense. However, the script offers one advantage — it adds a safety delay in case the process (in our use case, deleting a user using Make) takes longer than usual (unexpected Make server slowness for example).

Therefore, I recommend using a native page redirection combined with a small script to delay the redirection by 2 seconds.

Here is the script to be inserted into the page settings under Custom Code > Header.

<script>
    window.formRedirectDelay = {
        'form1': 2000
    };
</script>

This way the native redirection action will occur after 2 seconds.
Note: This script is intended for use with conditional forms only.

1 Like