Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter leonardomartinez1

    (@leonardomartinez1)

    I don’t think I did it the right way.

    I created a new Custom Js with the Simple Custom CSS and JS plugin with the following code.

    jQuery('#popmake-3033 form').on('submit', function () {
        var $this = jQuery('#popmake-3033'),
            settings = $this.data('popmake'),
            auto_open = settings.meta.auto_open,
            cookie_name = "popmake-auto-open-" + settings.id;
    
        if (auto_open !== undefined && auto_open.enabled && auto_open.cookie_key !== undefined && auto_open.cookie_key !== '') {
            cookie_name = cookie_name + "-" + auto_open.cookie_key;
        }
    
        jQuery.pm_cookie(
            '#popmake-3033', // The cookie name that is checked prior to auto opening.
            true, // Setting a cookie value of true.
            '10 years', // Plain english time frame.
            '/' // Cookie path of / means site wide.
        );
    });

    But it didn’t work.

    My cookie’s names are “pum-3033”

    Thread Starter leonardomartinez1

    (@leonardomartinez1)

    @danieliser I created the cookies as you told me, just like the screenshot below, right?

    <img src=”https://narguilebr.com.br/wp-content/uploads/2016/05/Screenshot.png&#8221; alt=”screenshot”>

    And now, I didn’t understand when you said “The manual JS part depends on how you created your form, if its one of the several plugins we already work with he have documented solutions for firing that, just need to know a bit more first.”

    It’s not clear for me.

    I used the code below, it’s a Google Form Plugin’s code, when I click send, it works and send the answers to my google sheet in Google Drive but it keeps showing the pop up even when sent.

    <div class="ss-form-container">
    <div class="ss-header-image-container">Nome Completo</div>
    <div class="ss-form"><form id="ss-form" action="" method="POST" novalidate="novalidate" target="_self">
    <div class="wpgform-wrapper" style="border: 0px dashed blue;">
    <div class="wpgform-first wpgform-last wpgform-column " style="width: 100%; float: left;">
    <div class="wpgform-column-wrapper" style="border: 0px dashed green;">
    <div class="ss-form-question errorbox-good">
    <div class="ss-item ss-item-required ss-text wpgform-dontsplit">
    <div class="ss-form-entry">
    
    <input id="entry_462766229" class="ss-q-short wpgform-required" name="entry.462766229" type="text" value="" />
    <div class="required-message"></div>
    <div class="required-message">Email</div>
    </div>
    </div>
    </div>
    <div class="ss-form-question errorbox-good">
    <div class="ss-item ss-item-required ss-text wpgform-dontsplit">
    <div class="ss-form-entry">
    
    <input id="entry_603757692" class="ss-q-short wpgform-required" name="entry.603757692" type="text" value="" />
    <div class="error-message"></div>
    <div class="required-message">Com que frequência deseja receber nossos emails?</div>
    </div>
    </div>
    </div>
    <div class="ss-form-question errorbox-good">
    <div class="ss-item ss-item-required ss-radio wpgform-dontsplit">
    <div class="ss-form-entry">
    
    <label><span class="ss-choice-item-control goog-inline-block"><input id="group_1626317232_1" class="ss-q-radio wpgform-required" name="entry.1626317232" type="radio" value="Semanal" /></span><span class="ss-choice-label">Semanal</span>
    </label>
    
    <label><span class="ss-choice-item-control goog-inline-block"><input id="group_1626317232_2" class="ss-q-radio wpgform-required" name="entry.1626317232" type="radio" value="Quinzenal" /></span><span class="ss-choice-label">Quinzenal</span>
    </label>
    
    <label><span class="ss-choice-item-control goog-inline-block"><input id="group_1626317232_3" class="ss-q-radio wpgform-required" name="entry.1626317232" type="radio" value="Mensal" /></span><span class="ss-choice-label">Mensal</span>
    </label>
    
    <label><span class="ss-choice-item-control goog-inline-block"><input id="group_1626317232_4" class="ss-q-radio wpgform-required" name="entry.1626317232" type="radio" value="Bimestral" /></span><span class="ss-choice-label">Bimestral</span>
    </label>
    
    <label><span class="ss-choice-item-control goog-inline-block"><input id="group_1626317232_5" class="ss-q-radio wpgform-required" name="entry.1626317232" type="radio" value="Semestral" /></span><span class="ss-choice-label">Semestral</span></label>
    
    </div>
    </div>
    </div>
    <input name="fbzx" type="hidden" value="6328651402736272702" />
    <div class="ss-item ss-navigate wpgform-dontsplit"><input id="ss-submit" class="jfk-button jfk-button-action " name="submit" type="submit" value="Enviar" /></div>
    <input name="wpgform-action" type="hidden" value="czo4OToiaHR0cHM6Ly9kb2NzLmdvb2dsZS5jb20vZm9ybXMvZC8xSFFmTDlCTWVyTTJ5enVKVlNzVFU2cEUxbzRkVXNySFVqQ2NoWGwzRGtNSS9mb3JtUmVzcG9uc2UiOw==" /><input name="wpgform-form-id" type="hidden" value="1" /><input name="wpgform-options" type="hidden" value="YTo0MDp7czo0OiJmb3JtIjtzOjg1OiJodHRwczovL2RvY3MuZ29vZ2xlLmNvbS9mb3Jtcy9kLzFIUWZMOUJNZXJNMnl6dUpWU3NUVTZwRTFvNGRVc3JIVWpDY2hYbDNEa01JL3ZpZXdmb3JtIjtzOjM6InVpZCI7czowOiIiO3M6NzoiY29uZmlybSI7czo4NToiaHR0cHM6Ly9kb2NzLmdvb2dsZS5jb20vZm9ybXMvZC8xSFFmTDlCTWVyTTJ5enVKVlNzVFU2cEUxbzRkVXNySFVqQ2NoWGwzRGtNSS92aWV3Zm9ybSI7czo1OiJhbGVydCI7czoyNDoiUGFyYWLDqW5zIHBlbG8gY2FkYXN0cm8hIjtzOjU6ImNsYXNzIjtzOjc6IndwZ2Zvcm0iO3M6NToibGVnYWwiO3M6Mzoib2ZmIjtzOjI6ImJyIjtzOjM6Im9mZiI7czo3OiJjb2x1bW5zIjtpOjE7czoxMToibWludnB0d2lkdGgiO3M6MToiMCI7czoxMToiY29sdW1ub3JkZXIiO3M6MTM6ImxlZnQtdG8tcmlnaHQiO3M6MTA6ImNzc19zdWZmaXgiO047czoxMDoiY3NzX3ByZWZpeCI7TjtzOjg6InJlYWRvbmx5IjtzOjM6Im9mZiI7czo1OiJ0aXRsZSI7czozOiJvZmYiO3M6NzoibWFwaDFoMiI7czozOiJvZmYiO3M6NToiZW1haWwiO3M6Mzoib2ZmIjtzOjY6InNlbmR0byI7TjtzOjEwOiJ1c2VyX2VtYWlsIjtzOjM6Im9mZiI7czoxMToidXNlcl9zZW5kdG8iO047czo3OiJyZXN1bHRzIjtiOjA7czoxMToic3ByZWFkc2hlZXQiO2I6MDtzOjc6ImNhcHRjaGEiO3M6Mzoib2ZmIjtzOjEwOiJ2YWxpZGF0aW9uIjtzOjI6Im9uIjtzOjE0OiJ1bml0ZXRoZW1laGFjayI7czozOiJvZmYiO3M6NToic3R5bGUiO3M6NDoibm9uZSI7czoxMzoidXNlX3RyYW5zaWVudCI7czozOiJvZmYiO3M6MTQ6InRyYW5zaWVudF90aW1lIjtzOjE6IjUiO3M6MjoiaWQiO2k6MjY1NjtzOjIxOiJ2YWxpZGF0aW9uX2ZpZWxkX25hbWUiO2E6MTp7aTowO3M6MDoiIjt9czoyMjoicGxhY2Vob2xkZXJfZmllbGRfbmFtZSI7YToxOntpOjA7czowOiIiO31zOjExOiJoaWRkZW5maWVsZCI7czozOiJvZmYiO3M6MjI6ImhpZGRlbmZpZWxkX2ZpZWxkX25hbWUiO2E6MTp7aTowO3M6MDoiIjt9czoyODoib3ZlcnJpZGVfZ29vZ2xlX2RlZmF1bHRfdGV4dCI7czoyOiJvbiI7czoyMjoicmVxdWlyZWRfdGV4dF9vdmVycmlkZSI7czoxMjoiT2JyaWdhdMOzcmlvIjtzOjI3OiJzdWJtaXRfYnV0dG9uX3RleHRfb3ZlcnJpZGUiO3M6NjoiRW52aWFyIjtzOjI1OiJiYWNrX2J1dHRvbl90ZXh0X292ZXJyaWRlIjtzOjY6IlZvbHRhciI7czoyOToiY29udGludWVfYnV0dG9uX3RleHRfb3ZlcnJpZGUiO3M6OToiQ29udGludWFyIjtzOjI3OiJyYWRpb19idXR0b25zX3RleHRfb3ZlcnJpZGUiO3M6MjU6Ik1hcnF1ZSBhcGVuYXMgdW1hIG9ww6fDo28iO3M6MzM6InJhZGlvX2J1dHRvbnNfb3RoZXJfdGV4dF9vdmVycmlkZSI7czoxMzoiT3V0cmEgT3DDp8OjbyI7czoyNToiY2hlY2tfYm94ZXNfdGV4dF9vdmVycmlkZSI7czoyNToiTWFycXVlIGFwZW5hcyB1bWEgb3DDp8OjbyI7fQ==" />
    
    </div>
    </div>
    </div>
    <div style="border: 0px dashed black; clear: both;"></div>
    </form></div>
    <div class="ss-footer">
    <div class="ss-attribution"></div>
    <div class="ss-legal" style="display: none;">
    <div class="disclaimer-separator"></div>
    <div class="disclaimer">
    <div class="powered-by-logo"><span class="powered-by-text">Powered by</span>
    <a href="https://www.google.com/forms/about/?utm_source=product&utm_medium=forms_logo&utm_campaign=forms">
    </a>
    <div class="ss-logo-container ss-logo-css-container">
    <div class="ss-logo-image"></div>
    <span class="aria-only-help">Google Forms</span>
    
    </div>
    </div>
    <div class="ss-terms">
    
    <span class="disclaimer-msg">This content is neither created nor endorsed by Google.</span>
    
    <a href="https://docs.google.com/forms/d/1HQfL9BMerM2yzuJVSsTU6pE1o4dUsrHUjCchXl3DkMI/reportabuse?source=https://docs.google.com/forms/d/1HQfL9BMerM2yzuJVSsTU6pE1o4dUsrHUjCchXl3DkMI/viewform">Report Abuse</a>
    -
    <a href="https://www.google.com/accounts/TOS">Terms of Service</a>
    -
    <a href="https://www.google.com/google-d-s/terms.html">Additional Terms</a>
    
    </div>
    </div>
    </div>
    </div>
    <div class="docs-a11y-ariascreenreader-speakable docs-offscreen"></div>
    </div>

    What is missing? Or what did I do wrong?

Viewing 2 replies - 1 through 2 (of 2 total)