# Install a Widget in JavaScript

**URL:** https://community.glideapps.com/t/install-a-widget-in-javascript/57087
**Category:** Ask for Help
**Created:** [January 24, 2023, 10:53pm UTC](https://community.glideapps.com/t/install-a-widget-in-javascript/57087 "2023-01-24T22:53:28Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![TGensler](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/tgensler/32/14879_2.png) [@TGensler](https://community.glideapps.com/u/TGensler)
#### Post date: [January 24, 2023, 10:53pm UTC](https://community.glideapps.com/t/install-a-widget-in-javascript/57087/1 "2023-01-24T22:53:28Z")

</div>

Hey Everyone,

I’m trying to figure out a way to install a JavaScript widget on my app but I can’t seem to figure it out.  
Here is a sample of something I’m wanting to embed.

```auto
<div id="nichesss_qYnTnYzPl52tFbe"></div>

<script type="text/javascript">
(function (n,i,c,h,e,s) {
    if (n.nq) { return; }
    n.nichesss = n.nichesss || {}; n.nqq = []; n.nq = function (fn) { n.nichesss && n.nichesss.Widget ? fn.call() : n.nqq.push(fn) }
    h = i.getElementsByTagName('head')[0];
    e = i.createElement('script');
    e.src=c+'?v=' + (new Date()).getTime();
    h.appendChild(e)
})(window,document, 'https://widget.nichesss.com/dist/nichesss.embed.min.js')

nq(function () {
    new nichesss.Widget('#nichesss_qYnTnYzPl52tFbe', {
        id: 'qYnTnYzPl52tFbe',
        width: 450
    });
});
</script>

```

I’ve tried just pasting it in Rich Text and WebView components, but neither seems to work.

Thanks for any thoughts or ideas on how to accomplish this.

---

<div class="post-metadata">

### Author: ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)
#### Post date: [January 24, 2023, 11:28pm UTC](https://community.glideapps.com/t/install-a-widget-in-javascript/57087/2 "2023-01-24T23:28:28Z")

</div>

this is an HTML script for a website 😉 it won’t work here…  
You have to break it down into HTML and Java… then create a little driver in logic columns to make it work… or just embed it as a let’s say Google Web App.
