daily pastebin goal
72%
SHARE
TWEET

Prepopulate Lightbox Embed Code

cqmikko Feb 2nd, 2016 11 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. </head>
  5. <body>
  6.  
  7.     <script src="https://form.jotform.com/static/feedback2.js?3.3.REV" type="text/javascript">
  8.  
  9.  
  10.         function getParameter(theParameter) {
  11.           var params = window.location.search.substr(1).split('&');
  12.          
  13.           for (var i = 0; i < params.length; i++) {
  14.             var p=params[i].split('=');
  15.             if (p[0] == theParameter) {
  16.               return decodeURIComponent(p[1]);
  17.             }
  18.           }
  19.           return false;
  20.         }
  21.  
  22.    
  23.  
  24.       var JFL_60319512035951 = new JotformFeedback({
  25.         formId: '60319512035951',
  26.         base: 'https://form.jotform.com/',
  27.             iframeParameters: {
  28.                  'fullName[first]' : getParameter("fullNameFirst"),
  29.                  'fullName[last]' : getParameter("fullNameLast"),
  30.                  'date[month]': getParameter("dateMonth"),
  31.                  'date[day]' : getParameter("dateDay"),
  32.                  'date[year]' : getParameter("dateYear")
  33.             },
  34.         windowTitle: 'Date Prepopulate on Lightbox',
  35.         background: '#FFA500',
  36.         fontColor: '#FFFFFF',
  37.         type: 'false',
  38.         height: 500,
  39.         width: 700,
  40.         openOnLoad: false
  41.       });
  42.     </script>
  43.       <a class="btn lightbox-60319512035951" style="margin-top: 16px">
  44.         Date Prepopulate on Lightbox
  45.       </a>
  46.  
  47.  
  48. </body>
  49. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top