Jump to content

How to set up button code to pop up 3rd party form?

Go to solution Solved by Lesum,

Recommended Posts

Hello!

I am trying to add a button my SS7.1 site, which would trigger a pop-up form, sending info to a 3rd party service we utilize.  The (very brief) instructions from the app developer are as follows:

To add a referral form to your website:
1. Copy this code into the HTML head on your webpage:
<script src="https://app.vpop-pro.com/referral.js?emailId=p8owrmk71ts2"></script>
2. Add a button with the an id: VPOPReferralButton
<button id="VPOPReferralButton">Refer a patient</button>

The header script is the easy part, but I don't understand how to add the button with ID, so that it pops up the form "OVER TOP" of the page content.  Can you assist?

Edited by JewelVS
clarification
Link to comment
  • Replies 4
  • Views 275
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Solution

@JewelVS It looks like the popup form opens when you click the button, but it's not displaying correctly. You can add the following code under Website > Pages > Website Tools > Custom CSS to resolve the issue:

#VPOPReferralModal {
	z-index: 1000 !important;
}

 

If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. 

Sam
Web Developer & Digital Designer

 Did you find my contribution helpful? Buy me a coffee?

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.