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

  1. mkirby94
    Posted 3 years 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


  2. Kreg
    Plugin Author

    Posted 3 years 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

  • SpeakUp! Email Petitions
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic