ariaconsulting Posted February 13, 2020 Share Posted February 13, 2020 Site URL: https://ariaconsulting.net Hi, Does anyone know how I can add embed code for a lightbox object to a button? I have a jotform I want to come up in a lightbox when the button is clicked. Thanks! Link to comment
tuanphan Posted February 13, 2020 Share Posted February 13, 2020 (edited) Try this guide. Notes Step 2. Create blank page, insert Code Block, Paste Jotform embed code 😅 Edited February 13, 2020 by tuanphan Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
UnboundNowHouston Posted July 15, 2022 Share Posted July 15, 2022 When I do this, the form shows up as a link and not a button. How can I use this code to have the lightbox show up as a button instead of a link? <script src ="https://form.jotform.com/static/feedback2.js" type="text/javascript"></script><script type="text/javascript"> var JFL_92346754362159 = new JotformFeedback({ formId: '92346754362159', base: 'https://form.jotform.com/', windowTitle: 'Unbound Now Volunteer Application', background: '#688ea3', fontColor: '#FFFFFF', type: 'false', height: 500, width: 700, openOnLoad: false }); </script> <a class="btn lightbox-92346754362159" style="margin-top: 16px"> Unbound Now Volunteer Application </a> Link to comment
tuanphan Posted July 16, 2022 Share Posted July 16, 2022 13 hours ago, UnboundNowHouston said: When I do this, the form shows up as a link and not a button. How can I use this code to have the lightbox show up as a button instead of a link? <script src ="https://form.jotform.com/static/feedback2.js" type="text/javascript"></script><script type="text/javascript"> var JFL_92346754362159 = new JotformFeedback({ formId: '92346754362159', base: 'https://form.jotform.com/', windowTitle: 'Unbound Now Volunteer Application', background: '#688ea3', fontColor: '#FFFFFF', type: 'false', height: 500, width: 700, openOnLoad: false }); </script> <a class="btn lightbox-92346754362159" style="margin-top: 16px"> Unbound Now Volunteer Application </a> Can you share link to your site? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
GlenwoodMedia Posted August 15, 2022 Share Posted August 15, 2022 JotForm's embedded lightbox works in 7.1 but the button is ugly...and won't match your site styles.To make it match, replace btn in the last part of the embedded JotForm Code Block<a class="btn lightbox- 123456789012345 " >Button Name</a>with sqs-block-button-element--medium sqs-button-element--primary sqs-block-button-elementIt should look like this:<a class="sqs-block-button-element--medium sqs-button-element--primary sqs-block-button-element lightbox-123456789012345" >Button Name</a>And to center the button, put <center> on Line 1 of the code block and </center> on the last line. tuanphan 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment