# Issues embedding thinkific widget

**URL:** <https://community.prismic.io/t/issues-embedding-thinkific-widget/11184>\
**Category:** Developing with Prismic\
**Tags:** graphquery, nextjs\
**Created:** [September 26, 2022, 5:00am UTC](https://community.prismic.io/t/issues-embedding-thinkific-widget/11184 "2022-09-26T05:00:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![manish](https://avatars.discourse-cdn.com/v4/letter/m/a6a055/32.png) [@manish](https://community.prismic.io/u/manish)\
**Post date:** [September 26, 2022, 5:00am UTC](https://community.prismic.io/t/issues-embedding-thinkific-widget/11184/1 "2022-09-26T05:00:19Z")

</div>

Hello All,

We are using prismic with GraphQl and next.js, and we have a requirement to embed thinkific sales widget.

The code we got is this

`<div class="thinkific-product-card" data-btn-txt="Certify me" data-btn-txt-color="#ffffff" data-btn-bg-color="#179473" data-card-type="card" data-link-type="checkout" data-product="1740338" data-embed-version="0.0.2" data-card-txt-color="#7d7d7d" data-card-bg-color="#ffffff" data-store-url="[https://training.--.ai/embeds/products/show"](https://training.--.ai/embeds/products/show%22)<div> class="iframe-container"></div><script type="text/javascript">document.getElementById("thinkific-product-embed") || document.write('<script id="thinkific-product-embed" type="text/javascript" src="[https://assets.thinkific.com/js/embeds/product-cards-client.min.js"](https://assets.thinkific.com/js/embeds/product-cards-client.min.js%22)</script>');</script><noscript><a> href="https://training.--.ai/enroll/1740338?et=paid%22 target="_blank">Certify me</a></noscript></div>`

We created a code slice on prismic and tried to set it on the HTML using

```auto
 <div
                      key={index}
                      dangerouslySetInnerHTML={{
                        __html: `${section.primary.quote.richText[0].text}`,
                      }}
                    ></div>

```

But this widget is not being rendered. On inspect element I see the div is created, but the script doesnt run.

Any guidance on this?

---

<div class="post-metadata">

**Author:** ![Pau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/pau/32/5422_2.png) [@Pau](https://community.prismic.io/u/Pau)\
**Post date:** [September 26, 2022, 8:27pm UTC](https://community.prismic.io/t/issues-embedding-thinkific-widget/11184/3 "2022-09-26T20:27:57Z")

</div>

Hey @manish, thanks for reaching out.  
It seems like the correct field is not being rendered. Rich text fields only need to be called by their ID. Let's review the following data:

- Can you show us the complete query?
- What's the API ID of the field, and where is it located, in a Group field or a Slice?
