# Customize sign in widget - forgot password link

**URL:** <https://devforum.okta.com/t/customize-sign-in-widget-forgot-password-link/20405>\
**Category:** Questions\
**Tags:** widget\
**Created:** [April 25, 2022, 6:00pm UTC](https://devforum.okta.com/t/customize-sign-in-widget-forgot-password-link/20405 "2022-04-25T18:00:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![apa](https://avatars.discourse-cdn.com/v4/letter/a/da6949/32.png) [@apa](https://devforum.okta.com/u/apa)\
**Post date:** [April 25, 2022, 6:00pm UTC](https://devforum.okta.com/t/customize-sign-in-widget-forgot-password-link/20405/1 "2022-04-25T18:00:23Z")

</div>

I am customizing the sign in widget and adding a different url for the forgot password link, the one thing I noticed is that in order to display the forgot password link you need to click the ’ Need help signing in?’. My question is there anyway to default the display of the forgot password link onto the widget?

---

<div class="post-metadata">

**Author:** ![erik](https://avatars.discourse-cdn.com/v4/letter/e/b5ac83/32.png) [@erik](https://devforum.okta.com/u/erik)\
**Post date:** [April 25, 2022, 10:21pm UTC](https://devforum.okta.com/t/customize-sign-in-widget-forgot-password-link/20405/2 "2022-04-25T22:21:05Z")

</div>

Hello,  
I don’t believe there is an option that can be passed for this.  
The options I know of would be to either clone the widget repo and make the change, or with the existing Widget use the [afterRender()](https://github.com/okta/okta-signin-widget/blob/master/docs/classic.md#afterrender) callback to do this via JS.

---

<div class="post-metadata">

**Author:** ![apa](https://avatars.discourse-cdn.com/v4/letter/a/da6949/32.png) [@apa](https://devforum.okta.com/u/apa)\
**Post date:** [April 26, 2022, 3:10pm UTC](https://devforum.okta.com/t/customize-sign-in-widget-forgot-password-link/20405/3 "2022-04-26T15:10:43Z")

</div>

My I ask what the code for the afterRender() might look like to show the forgot password link in the widget

---

<div class="post-metadata">

**Author:** ![erik](https://avatars.discourse-cdn.com/v4/letter/e/b5ac83/32.png) [@erik](https://devforum.okta.com/u/erik)\
**Post date:** [May 3, 2022, 9:33pm UTC](https://devforum.okta.com/t/customize-sign-in-widget-forgot-password-link/20405/4 "2022-05-03T21:33:11Z")

</div>

You can use CSS,

```auto
    <style>
      #help-links-container {
        display: block !important;;
      }
    </style>

```

For afterRender(),

```auto
oktaSignIn.on('afterRender', function (context) {
    document.getElementById("help-links-container").style.display="block";
});

```

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [February 12, 2024, 7:23pm UTC](https://devforum.okta.com/t/customize-sign-in-widget-forgot-password-link/20405/5 "2024-02-12T19:23:21Z")

</div>

Closed on February 12, 2024, 7:23pm UTC


