# Execute JavaScript code from a plugin once after load

**URL:** https://meta.discourse.org/t/execute-javascript-code-from-a-plugin-once-after-load/85580
**Category:** Development
**Created:** [April 17, 2018, 10:04pm UTC](https://meta.discourse.org/t/execute-javascript-code-from-a-plugin-once-after-load/85580 "2018-04-17T22:04:22Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![eatcodetravel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eatcodetravel/32/94385_2.png) [@eatcodetravel](https://meta.discourse.org/u/eatcodetravel)
#### Post date: [April 18, 2018, 12:07am UTC](https://meta.discourse.org/t/execute-javascript-code-from-a-plugin-once-after-load/85580/3 "2018-04-18T00:07:15Z")

</div>

Render a modal conditionally given some user custom\_fields. The work is related to this [Force password change after login - #5 by riking](https://meta.discourse.org/t/force-password-change-after-login/85202/5)

---

_[View the full topic](https://meta.discourse.org/t/execute-javascript-code-from-a-plugin-once-after-load/85580)._
