Jump to content

Add lightbox embed code to a button?

Recommended Posts

  • 2 years later...

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
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
  • 5 weeks later...

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-element

It 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.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.