I am still confused about embedding the script in the Slice Richtext in this post.
In the Slice Richtext
<div
dangerouslySetInnerHTML={{
__html: <PrismicRichText field={slice.primary.formembed} />,
}}
></div>
Output
[object Object]