Add Gravity Forms to my code I’m using javascript

`I have this code that I am adding to my wordpress, I want to add the code that was provided to me for the gravity forms form [gravityform id=”1″ title=”true”], but I still don’t really know how to include it. I did it this way but I can’t see it.
The idea is that when we press the Prospective Client button it shows the form


<!-- SAMPLE PROOF OF CONCEPT CODE -->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Test Form Routing</title>
    <style>
      /* Add your custom styles here */
    </style>
  </head>

  <!-- CSS styles -->
  <style>
    /* Styles for the first button type (button A)*/
    .buttonA {
      border: 2px solid white;
      background: #02457c;
      color: #ffffff;
      font-family: "Source Sans 3";
      font-style: normal;
      font-size: 16px;
      font-weight: 600;
      padding: 20px 20px;
      margin-bottom: 30px;
      border-radius: 30px;
      cursor: pointer;

      transition: background 0.3s, color 0.3s, border-color 0.3s;
    }

    .buttonA:hover {
      background: #002847;
      border: 3px solid #ffffff;
    }

    /* Styles for the first button type (button B)*/
    .buttonB {
      border: 2px solid #02457c;
      background: #ffffff;
      color: #02457c;
      font-family: "Source Sans 3";
      font-style: normal;
      font-size: 16px;
      font-weight: 600;
      padding: 20px 20px;
      margin-bottom: 30px;
      border-radius: 30px;
      cursor: pointer;
      transition: background 0.3s, color 0.3s, border-color 0.3s;
    }

    .buttonB:hover {
      background: white;
      border: 3px solid #002847;
    }

    .description {
      text-align: center;
      margin-bottom: 10px;
    }

      /* Styles for button container */
      .button-container {
            text-align: center;
        }
  </style>

  <body>
    <!-- Buttons -->
    <button id="buttonA" class="buttonA">Prospective Client</button>
    <button id="buttonB" class="buttonB">Existing Client</button>

    <!-- Content for button A -->
    <div id="contentA">
        <div id="formContainer" style="display: none">
          [gravityform id="1" title="true"]
        </div>
      </div>

    <!-- Content for button B -->
    <div id="contentB" style="display: none">
      <div class="description">Discovery Meeting Description</div>
      <div class="button-container">
      <button id="discoveryButton" class="buttonA">Discovery Meeting</button>
    </div>
      <div class="description">Review Meeting Description</div>
      <div class="button-container">
      <button id="reviewButton" class="buttonA">Review Meeting</button>
      </div>
      <div class="description">Quick Chat Description</div>
      <div class="button-container">
        <button id="quickChatButton" class="buttonA">Quick Chat</button>
        </div>
      </div>
    </div>

    <!-- Back button -->
    <button id="backButton" class="buttonB" style="display: none">Back</button>

    <!-- JavaScript script -->
    <script>
      // Click event for button A
      document.getElementById("buttonA").addEventListener("click", function () {
            document.getElementById("contentA").style.display = "block"; // Show content A
            document.getElementById("formContainer").style.display = 'block'; 
            document.getElementById("contentB").style.display = "none"; // Hide content B
            document.getElementById("buttonA").style.display = "none"; // Hide button A
            document.getElementById("buttonB").style.display = "none"; // Hide button B
            document.getElementById("backButton").style.display = "block"; // Show back button
        });

      // Click event for button B
      document.getElementById("buttonB").addEventListener("click", function () {
        document.getElementById("contentA").style.display = "none"; // Hide content A
        document.getElementById("contentB").style.display = "block"; // Show content B
        document.getElementById("buttonA").style.display = "none"; // Hide button A
        document.getElementById("buttonB").style.display = "none"; // Hide button B
        document.getElementById("backButton").style.display = "block"; // Show back button
      });

      // Click event for back button
      document
        .getElementById("backButton")
        .addEventListener("click", function () {
          document.getElementById("contentA").style.display = "none"; // Hide content A
          document.getElementById("contentB").style.display = "none"; // Hide content B
          document.getElementById("buttonA").style.display = "block"; // Show button A
          document.getElementById("buttonB").style.display = "block"; // Show button B
          document.getElementById("backButton").style.display = "none"; // Hide back button
        });


      // Event listeners for buttons in content B
      document
        .getElementById("discoveryButton")
        .addEventListener("click", function () {
          window.location.href = "https://wiserwealth.as.me/discovery";
        });

      document
        .getElementById("reviewButton")
        .addEventListener("click", function () {
          window.location.href = "https://wiserwealth.as.me/review";
        });

      document
        .getElementById("quickChatButton")
        .addEventListener("click", function () {
          window.location.href = "https://wiserwealth.as.me/quickchat";
        });
    </script>
  </body>
</html>`

New contributor

Sofia Costamagna is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật