# Form is only working postLogin but not postUserRegistration

**URL:** <https://community.auth0.com/t/form-is-only-working-postlogin-but-not-postuserregistration/135940>\
**Category:** Get Help\
**Tags:** configuration, application\
**Created:** [June 7, 2024, 8:03pm UTC](https://community.auth0.com/t/form-is-only-working-postlogin-but-not-postuserregistration/135940 "2024-06-07T20:03:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![KjellBerlin](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kjellberlin/32/57720_2.png) [@KjellBerlin](https://community.auth0.com/u/KjellBerlin)\
**Post date:** [June 7, 2024, 8:03pm UTC](https://community.auth0.com/t/form-is-only-working-postlogin-but-not-postuserregistration/135940/1 "2024-06-07T20:03:28Z")

</div>

I created a Form a user should fill out after registering. In the form he should basically provide his name which will be added to user\_metadata. If I create a post login action with this form it perfectly works.

```auto

exports.onExecutePostLogin = async (event, api) => {
  const FORM_ID = 'myFormId';

  api.prompt.render(FORM_ID);
}
exports.onContinuePostLogin = async (event, api) => {}

```

But if I try to do exactly the same with the same Form as a postUserRegistration action with belows code it does not work

```auto
exports.onExecutePostUserRegistration = async (event, api) => {
  const FORM_ID = 'myFormId';

  api.prompt.render(FORM_ID);
}

exports.onContinuePostUserRegistration = async (event, api) => {}

```

Instead of opening the form the user gets redirected straight to the app. Additionally I found this error log

TypeError on post-user-registration: Cannot read properties of undefined (reading ‘render’)

I don’t understand why the form works as a postLogin form but not as a postUserRegistration form.

I would be glad if someone has an idea, thanks in advance!

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [June 28, 2024, 4:00pm UTC](https://community.auth0.com/t/form-is-only-working-postlogin-but-not-postuserregistration/135940/2 "2024-06-28T16:00:49Z")

</div>

Hi @KjellBerlin

Welcome to the Auth0 Community!

Thank you for posting your question. Currently Forms for actions support only post-login action, but there are plans for support for other action triggers. There’s no ETA yet, but I will update you as soon as we’ll have one.

Thanks  
Dawid

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [July 12, 2024, 4:01pm UTC](https://community.auth0.com/t/form-is-only-working-postlogin-but-not-postuserregistration/135940/3 "2024-07-12T16:01:09Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
