首页 > 解决方案 > 为什么我的表单上的日期输入无法通过 HTTP 发送?

问题描述

第一个问题:我正在创建的表单是将信息发布到名为 Granot 的 CRM。由于某种原因,日期输入和下拉选项不会发布。

我取出了 type="date" 并且帖子通过了,但我希望我的用户有一个可以使用的日历。

第二个问题:提交表单后,我希望用户被重定向到感谢页面而不是帖子网关 URL。

这是我在 granot 网站上找到的开发人员指南。这里有没有人会更熟悉这个文件?https://docs.google.com/document/d/1VMpPFi4c4EhQUg9qab4tPkypgnUQF4U7L8Y-HU8I-R0/preview

我在文档中的表格上看到了要添加的 redirurl 名称。虽然我不知道如何使用它。

编辑:提交表单后,它会将我带到操作页面并说:“0,16,移动日期必须大于今天,0,0”

<form name="basicform" id="get_quote_from_test" method="POST" action="https://lead.hellomoving.com/LEADSGWHTTP.lidgw?&API_ID=E432CD67C51E">
      <div id="form_cotent">
        <div class="regForm">

          <div id="step_1">
            <div align="center" class="tab">

              <h3 align="center">Compare Rates and Save Money!</h3>
              <h2 align="center">About Your Move</h2>

              <input placeholder="From Zipcode" oninput="this.className = ''" name="ozip">

              <input placeholder="To Zipcode" oninput="this.className = ''" name="dzip">

              <input type="date" placeholder="mm/dd/yyyy" oninput="this.className = ''" name="movedte">

              <select name="movesize">
                <option value="" selected disabled hidden>Size of your Move</option>
                <option value="Partial Home" name="movesize">Partial Home</option>
                <option value="Studio" name="movesize">Studio</option>
                <option value="1 Bedroom" name="movesize">1 Bedroom</option>
                <option value="2 bedrooms" name="movesize">2 bedrooms</option>
                <option value="3 bedrooms" name="movesize">3 bedrooms</option>
                <option value="4 bedrooms" name="movesize">4 bedrooms</option>
                <option value="More than 4 bedrooms" name="movesize">More than 4 bedrooms</option>
                <option value="Office" name="movesize">Office</option>
              </select><br>


            </div>

            <div align="center" class="">
              <button id="step1_fwd" class="btn bttn1" type="button">
                <span class="text">Start Your Quote</span>


              </button>
              <!--<button id="step1_fwd" class="btn btn-primary bttn1" type="button">Start Your Quote</button>-->
            </div>
          </div>
          <!---- Step 2 --->
          <div id="step_2" class="step_2" style="display: none;">
            <div align="center" class="tab">
              <h2>Step 2</h2>
              <h3>Contact Info</h3>

              <input placeholder="First name" oninput="this.className = ''" name="firstname">

              <input placeholder="Last Name" oninput="this.className = ''" name="lastname">

              <input placeholder="E-mail" oninput="this.className = ''" name="email">

              <input placeholder="Phone" oninput="this.className = ''" name="phone1">
            </div>

            <div align="center">

              <button type="button" class="prevBtn" id="step2-bck">
                <span class="txt">Back</span>
              </button>

              <div class="subBtn">
                <button id="step2_fwd" class="btn bttn1" type="button">
                  <span class="">Next</span>
                </button>
                <!--<button id="step1_fwd" class="btn btn-primary bttn1" type="button">Start Your Quote</button>-->
              </div>

            </div>
          </div>


          <div id="step_3" class="step_3" style="display: none;">

            <div align="center" class="tab">
              <h2>Step 2</h2>
              <h3>Contact Info</h3>

              <input placeholder="E-mail" oninput="this.className = ''" name="email">

              <input placeholder="Phone" oninput="this.className = ''" name="phone1">
              </div>
              <button type="submit" class="auto">Submit</button>
            </div>


              <!--
                  <button type="button" class="prevBtn" id="step3_bck">
                    <span class="">Back</span>
                  </button>

               <div class="subBtn">
    <button id="get_quote" class="bttn1" type="submit">
    <span class="text">Get A Quote</span>
    </button>
-->
              <!--<button id="step1_fwd" class="btn btn-primary bttn1" type="button">Start Your Quote</button>-->
            </div>
          </div>
        </div>
      </div>
    </form>
  </section>

标签: htmlhttp

解决方案


推荐阅读