Several button-links to same popup form – vary in attributes/value

Home Forums Quform WordPress Several button-links to same popup form – vary in attributes/value

This topic is: not resolved
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #17656
    heliflug-ab-bern
    Participant

    Hello

    I created several popup forms which are linked to a button shortcode. (as per description here)

    All of these buttons are on the same page and all are pointing to the same form-ID but each one has a different pre selected value/attribute. (as per description here):

    The problem is that all popup forms take the pre selected value from the first Button. Isn’t it possible to differ them in the value?

    Thanks!

    Here is the code as an example:

    [button link="#form-1" size="small" color="red" type="simple"]London[/button]
    [iphorm_popup id="1" name="Example" values="country=UK&city=Bern-City"][/iphorm_popup]
    
    [button link="#form-1" size="small" color="red" type="simple"]Berlin[/button]
    [iphorm_popup id="1" name="Example" values="country=Germany&city=Berlin"][/iphorm_popup]
    
    <script type="text/javascript">// <![CDATA[
    jQuery(document).ready(function ($) {
        $('a[href="#form-1"]').click(function () {        $('.iphorm-fancybox-link-1').click();        return false;
        });
    });
    // ]]></script> 
    #17671
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy