내 웹 사이트에 Google 양식을 작성하고 모양을 변경하고 싶습니다. 나는 이렇게 할 설명을 발견했다 here. 각 코드는 아래에 표시되며 here (CSS 및 결과 포함)으로도 볼 수 있습니다.html 및 개별 확인 페이지가있는 Google 양식
난 내 자신의 확인 페이지 (mywebsite.com/signup-confirmation)을하고 싶습니다. A comment은 아래에 나와있는 방식으로 설명하지만 정확히 어디에서 변경해야하는지 모르겠습니다.
새 페이지로 리디렉션에서 양식을 유지합니다. 내가 폼에 추가, 대상 = "어떤 대상"그럼에 웹 사이트의 예에서내가 iframe을은 iframe의 SRC를 만들어 = "#"ID = "없는 대상" 이름 = "없는 대상"스타일 = "가시성 : 숨겨진 "이제> </iframe이
폼 나던에 window.location.hostname (U 자바 스크립트 window.location.assign와 URL의 위치 을 변경할 수 있습니다 제출 리디렉션 것으로,
^리디렉션 것 홈페이지
코드 : 양식 태그
<script type="text/javascript">var submitted=false;</script>
<iframe name="hidden_iframe" id="hidden_iframe" style="display:none;" onload="if(submitted) {window.location='/thanks.html';}"></iframe>
그리고이 :
<header>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css-signup.css">
<div class="wrapper">
<!-- TITLE YOUR FORM -->
<h1>Health Survey</h1>
<h2>Diagnostic for applicants to our fitness program.</h2>
</div>
</header>
<section>
<div class="wrapper">
<!-- START CODING YOUR FORM -->
<form action="https://docs.google.com/a/ladieslearningcode.com/forms/d/e/1FAIpQLSddBVO983YSbAXB7yWkg9Z69CyrY8AAQvUjlhJWtm-7LvdOpQ/formResponse">
<!-- MUTLIPLE CHOICE -->
<p>How often do you exercise?</p>
<div class="input-wrap"><input type="radio" name="entry.1177013199" id="e1" value="1 day a week"/>
<label for="e1">1 day a week</label></div>
<div class="input-wrap"><input type="radio" name="entry.1177013199" id="e2" value="2-3 days a week"/>
<label for="e2">2-3 days a week</label></div>
<div class="input-wrap"><input type="radio" name="entry.1177013199" id="e3" value="4-5 days a week"/>
<label for="e3">4-5 days a week</label></div>
<div class="input-wrap"><input type="radio" name="entry.1177013199" id="e4" value="6+ days a week"/>
<label for="e4">6+ days a week</label></div>
<!-- CHECKBOXES -->
<p>Do you have any food allergies?</p>
<div class="input-wrap"><input type="checkbox" name="entry.359931602" id="a1" value="Milk"/>
<label for="a1">Milk</label></div>
<div class="input-wrap"><input type="checkbox" name="entry.359931602" id="a2" value="Eggs"/>
<label for="a2">Eggs</label></div>
<div class="input-wrap"><input type="checkbox" name="entry.359931602" id="a3" value="Peanuts">
<label for="a3">Peanuts</label></div>
<div class="input-wrap"><input type="checkbox" name="entry.359931602" id="a4" value="Wheat">
<label for="a4">Wheat</label></div>
<div class="input-wrap"><input type="checkbox" name="entry.359931602" id="a5" value="Soy">
<label for="a5">Soy</label></div>
<!-- DROPDOWN -->
<p>What is your favourite food group?</p>
<div class="input-wrap select-box">
<select name="entry.1781742467">
<option selected disabled>Choose</option>
<option value="Fruit">Fruit</option>
<option value="Vegetables">Vegetables</option>
<option value="Grain">Grain</option>
<option value="Meat">Meat</option>
<option value="Dairy">Dairy</option>
</select>
</div>
<!-- SINGLE LINE TEXT FIELD -->
<label for="comfort">What is your go-to comfort food?</label>
<input name="entry.1169089770" type="text" id="comfort"/>
<!-- MULTI-LINE TEXT FIELD -->
<label for="explain">Explain why you want to improve your physical health.</label>
<textarea name="entry.1175247585" id="explain"/></textarea>
<!-- LINEAR SCALE "SLIDER" -->
<label for="explain">Rate your current physical health.</label>
<input name="entry.1672382864" type="range" min="1" max="5" step="1">
<!-- DATE INPUT -->
<label for="explain">When are you available to start training?</label>
<input name="entry.246017384" type="date">
<!-- TIME INPUT -->
<label for="explain">What time of day is best to connect?</label>
<input name="entry.1990206646" type="time">
<!-- SUBMIT BUTTON -->
<input class="button" type="submit" value="Submit">
</form>
</div>