Skip to content
[Docs]스프레드시트
2018.01.23 21:59

google spreadsheets html form post로 전달받기

조회 수 6858 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄 첨부
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄 첨부

google spreadsheets html form post로 전달받기 

 

 

 

주소 : https://gist.github.com/willpatera/ee41ae374d3c9839c2d6

 

 

 

 

success-page.html

29번 라인의  https://docs.google.com/spreadsheets/d/1p6X_HejWbIBx3eDDSacNvkVI3vFkFMSq4XW4rUDTyAw/edit?usp=sharing 를 자신의 스크립트 주소로 수정한다.

<body>
  <div class="container">
  <div class="row">
  <div class="col-lg-12">
  <h2>Success</h2>
  <p>
  Thanks for submitting the form - check out the responses submitted in the <a href="https://docs.google.com/spreadsheets/d/1p6X_HejWbIBx3eDDSacNvkVI3vFkFMSq4XW4rUDTyAw/edit?usp=sharing" target="_blank">spreadsheet</a>
  <p>
  </div>
  </div>
  <hr>
   
  </body>

 

 

validation-functions.js

23, 40번 라인의 정규식  regexp: /^[A-z]+$/ 을  regexp: /^[^a-zA-Z0-9]+$|^[a-zA-Z0-9]+[^a-zA-Z0-9]+$/ 으로 바꾸면 한글입력이 가능합니다.

firstName: {
  message: 'The first name is not valid',
  validators: {
  notEmpty: {
  message: 'The first name is required and cannot be empty'
  },
  stringLength: {
  min: 1,
  max: 30,
  message: 'The first name must be more than 1 and less than 30 characters long'
  },
  regexp: {
  regexp: /^[A-z]+$/,
  message: 'The first name can only accept alphabetical input'
  },
  }
  },
  lastName: {
  message: 'Last Name is not valid',
  validators: {
  notEmpty: {
  message: 'Last Name is required and cannot be empty'
  },
  stringLength: {
  min: 1,
  max: 30,
  message: 'Last Name must be more than 1 and less than 30 characters long'
  },
  regexp: {
  regexp: /^[A-z]+$/,
  message: 'Last Names can only consist of alphabetical characters'
  },
  }

 

 

결과가 잘 출력됩니다.

이제 데이터가 기록되면 자동으로 메일발송되면 좋겠는데 아직 이게 잘 안되네요.

 

spreadsheets.png

구글스크립트.zip

#google #spreadsheets #html #form #post #전달받기 

로그인 후 댓글쓰기가 가능합니다.

?

List of Articles
번호 분류 제목 날짜 조회 수
617 WindowsTip Windows XP 부팅속도 개선 팁 file 2015.01.24 1412
616 WindowsTip (nPDF) 프린터 인쇄 내용을 PDF 파일로 변환하기 2015.01.24 2271
615 WindowsTip JAVA 7 다운로드 file 2015.01.23 5891
614 WindowsTip 공유기의 공인IP(Wan) 미할당으로 안되는 증상이 잦은경우 대처방법 file 2015.01.22 1966
613 WindowsTip exFAT 이동식 USB 하드 쓰기 금지 문제 해결방법 2015.01.22 3107
612 WindowsTip usb 쓰기가 금지되어 있습니다 해제방법 file 2015.01.22 1827
611 WindowsTip 윈도우 XP에서 exFAT 인식 패치방법 file 2015.01.14 1557
610 WindowsTip 알리익스프레스에서 산 ralink 802.n usb driver file 2015.01.09 1521
609 WindowsTip 도스용 파티션 매직 file 2015.01.09 2322
608 WindowsTip ISO 파일을 USB로 굽기(USB 윈도우 설치 디스크 만들기) file 2015.01.09 4885
607 WindowsTip 복구콘솔 USB 만들기 2015.01.09 1539
606 WindowsTip 컴퓨터가 많이 느리다면? 2015.01.08 1777
605 WindowsTip XP USB 부팅디스크 만들기 & 고스트 2015.01.08 2089
604 WindowsTip 애드웨어 클리너 2015.01.07 6856
603 WindowsTip 마이크로소프트 윈도우가 제공하는 기본적인 실행명령어 모음. 2014.12.27 6305
602 WindowsTip autohotkey regwrite ipv6 제거툴 file 2014.12.27 1540
601 WindowsTip 윈도우 빠른종료 팁 file 2014.12.27 1821
600 WindowsTip 익스플로러 ftp 정상화 시키기 file 2014.12.23 1660
599 Excel 엑셀에서 날짜합계 구하는 함수(Sumproduct 함수 이해하기) 2014.12.13 9905
598 HTMLPHPMSQL PHP강좌 MySQL 연동 2014.11.11 5801
Board Pagination Prev 1 ... 14 15 16 17 18 ... 46 Next
/ 46

http://urin79.com

우린친구블로그

sketchbook5, 스케치북5

sketchbook5, 스케치북5

나눔글꼴 설치 안내


이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.

설치 취소