Skip to content

Instantly share code, notes, and snippets.

@vncloudsco
Created December 3, 2018 03:00
Show Gist options
  • Save vncloudsco/06272a56fd4f3bf5eb7ead10b08aa1d0 to your computer and use it in GitHub Desktop.
Save vncloudsco/06272a56fd4f3bf5eb7ead10b08aa1d0 to your computer and use it in GitHub Desktop.
<--- không cho chuyển trang về trang thông báo của google form khi hoàn thành điền thông tin --->
<iframe name="hidden_iframe" id="hidden_iframe" style="display:none;" onload="if(submitted) {window.location='https://vnclouds.co/thankyou.html';}"></iframe>
<--- không cho chuyển trang về trang thông báo của google form khi hoàn thành điền thông tin --->
<form action="https://docs.google.com/forms/d/e/1FAIpQLSfkFrInyxvqJIa06A7TPQK6h8Ye642QMQS9dtf10kI-EEZcMA/formResponse" method="post" target="hidden_iframe" onsubmit="submitted=true;">
<!-- <form id="contactForm" action="https://docs.google.com/forms/d/e/1FAIpQLSfkFrInyxvqJIa06A7TPQK6h8Ye642QMQS9dtf10kI-EEZcMA/formResponse" method="post">
--> <div class="row">
<div class="col-md-6">
<div class="form-group">
<input type="text" class="form-control" id="name" name="entry.942859040" placeholder="Name" required data-error="Please enter your name">
<div class="help-block with-errors"></div>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<input type="text" placeholder="Email" id="email" class="form-control" name="entry.2046962285" required data-error="Please enter your email">
<div class="help-block with-errors"></div>
</div>
</div>
<div class="col-md-12">
<div class="form-group">
<input type="text" placeholder="Subject" id="msg_subject" class="form-control" required="" data-error="Please enter your subject" name="entry.1435964145">
<div class="help-block with-errors"></div>
</div>
</div>
<div class="col-md-12">
<div class="form-group">
<textarea class="form-control" id="message" name="entry.18601226" placeholder="Message" rows="7" data-error="Write your message" required></textarea>
<div class="help-block with-errors"></div>
</div>
<div class="submit-button">
<button class="btn btn-common btn-effect" id="submit" type="submit">Submit</button>
<div id="msgSubmit" class="h3 hidden"></div>
<div class="clearfix"></div>
</div>
</div>
</div>
</form>
</div>
<--- entry.2046962285 mấy cái như vầy thì nhấn f12 trang form của gg để lấy thông tin --->
<--- 1FAIpQLSfkFrInyxvqJIa06A7TPQK6h8Ye642QMQS9dtf10kI-EEZcMA => ID của form --->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment