• Resolved laalpert1

    (@laalpert1)


    I’m trying to use Agreement to have site visitors agree to terms before they are able to send an email through the site. I’m using Email, which seems to work fine, except on a mobile device. So two questions: 1. when using Agreement on a desktop/laptop, is there a way to use mailto and not have a blank window open in addition to the mail program? And 2. is there a way to have it launch the mail app on mobile devices?
    Here’s the page I’m trying it on: https://daintorpy.com/2016/nancer-h-ballard/. The Email link in the sidebar is what triggers Agreement.

    https://www.ads-software.com/plugins/agreement/

Viewing 1 replies (of 1 total)
  • Plugin Author Pranav Pathak

    (@pranavpathakjaora)

    Hi laalpert1,

    Thanks for using agreement plugin, If you find interesting this plugin please review and rate.

    Question 1.
    Is there a way to use mailto and not have a blank window open ?
    Mailto is your own custom functionality, that’s why I can’t say anything about that. But you can prevent to open next tab in browser.

    In aggrement.js file line 18-23, you will find below codes

    //Agree button redirect to new window with url.
        jQuery('#agree').click(function(){
            jQuery('.licence-agreementbase').fadeOut('slow');
            jQuery('.licence-agreement').hide();
            window.open(href,'_blank');
        });

    You need to edit line 22

    window.open(href,'_self');

    replace “_blank” to “_self”.
    Here we are saying jQuery to open link in the same window.
    Check wither functionality is working or not. I don’t have time to test the codes. Requesting you to please check and confirm.

    Question 2.
    This plugin doesn’t consider any third party thing. But yes there will be APIS (that you need to check), those help you to give details of mail application in mobile device.

    thanks and regards,
    Pranav Pathak

Viewing 1 replies (of 1 total)
  • The topic ‘Using Agreement to send email’ is closed to new replies.