I'm trying to build the Embedded form on the website. So I have created a form on the Sitecore website and Sitecore API Key based on here

browse load the HTML website faced the below error

enter image description here

My HTML code:

<html lang="en">
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Sitecore Embeddable Forms Sample</title>
    <div class="my-page-container">
      <h1>Sitecore Embeddable Forms Sample</h1>
      <div class="my-embeddable-form-container">
      <scef-form formId="{9320F8B7-7199-42AE-B653-0281A3451E4E}"></scef-form>
   <script type="text/javascript" src="./sitecore-embeddableforms.umd.js?sc_site=https://sitename&sc_apikey=2A72FB75-5D3C-402F-A6C1-EB34ED5C1140"></script>
  • I think the issue here is the src value. Could you try with src="https://yousitecoresite/sitecore-embeddableforms.umd.js?sc_apikey=APIKey" Also I hope you already place sitecore-embeddableforms.umd.js file into root folder of Sitecore site. Jan 9 at 14:01


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.