By default, all of our Forms share the same modal id,  #ck_modal . Because of this, if you have multiple modals on the page to be triggered by a link click, when clicking on a link, it can't distinguish which Form to load and as a result, loads the last modal that is loaded on the page. To fix this, you simply need to use the HTML embed code for each Form.

HTML Embed CSS Code

Depending on your site, you may need to move the CSS of your HTML embed to the bottom of your stylesheet to ensure the design of the Form looks proper. Unlike our Javascript embed, which automatically loads our Form CSS after your site CSS loads, the HTML Form loads CSS in place. So sometimes, your site CSS can override our Form CSS, causing it to look weird. If this is the case, simply move the CSS portion of the HTML embed code to the end of your site's stylesheet.

HTML Embed ID Change

Next, for every Form, you'll want to embed the HTML embed code somewhere on the site, and then change the ID from ck_modal to something else. (Such as ck_modal1 for the first Sorm, ck_modal2 for the second Form, etc.)

Once you've done this, when creating the link that triggers the modal, just make sure the link follows the following format:

<a href="#ck_modal1" rel="ck_modal">TEXT HERE</a>  


<a href="#ck_modal2" rel="ck_modal">TEXT HERE</a>  

Note that the rel="ck_modal" does not change. Only the href in reference to the new ID.

Now each link should trigger the correct Form modal that should show up.

Custom CSS for the New Form Builder

Did this answer your question?