WordPress.org

Ready to get started?Download WordPress

Forums

SpeakUp! Email Petitions
require address input? (2 posts)

  1. mkirby94
    Member
    Posted 1 year ago #

    Is there a way to require that signers input their address?

    Is there a way to link directly to the petition signature page?

    Thank you, MK

    http://wordpress.org/extend/plugins/speakup-email-petitions/

  2. Kreg Wallace
    Member
    Plugin Author

    Posted 1 year ago #

    [1] This isn't built-in, but you can manually edit the Javascript file which handles the required validations. In public.js (which handles the shortcode form), look for rules like this:

    if ( lastname === '' ) {
    	$( '#dk-speakup-last-name-' + id ).addClass( 'dk-speakup-error' );
    	errors ++;
    }

    and then add your own rules, checking the values of the fields you want to require. So to require the City field, you'd add

    if ( city === '' ) {
    	$( '#dk-speakup-city-' + id ).addClass( 'dk-speakup-error' );
    	errors ++;
    }

    [2] There isn't any designated signature page. The [signaturelist id="1"] shortcode can be used to display a signature list on any page you wish. Then you can link to that page with a standard HTML link tag. Read through the shortcode documentation for further customization options.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags