Support » Plugin: Download After Email - Subscribe & Download Form Plugin » is there a way to add other condition

  • Resolved captainandy14


    I was wondering is there a way to add other conditional check like location ? A person adds his location and if the location matches he is asked for his name and email then he is allowed to download the file?

Viewing 1 replies (of 1 total)
  • Plugin Author mkscripts



    It is possible to add custom validation to form fields by using the following filters:

    apply_filters( 'dae_form_validation', false, $values );
    apply_filters( 'dae_form_validation_message', __( 'Please make sure all fields are filled in correctly.', 'download-after-email' ) );

    If a conditional statement is false, you can stop the form from being submitted and show an error message. These filters are located in /wp-content/plugins/download-after-email/includes/shortcodes.php.

    Hope this helps. If you have any more questions, feel free to ask.

    Kind regards,
    Team Download After Email

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.