Title: Send Notification to conditional emails?
Last modified: August 10, 2018

---

# Send Notification to conditional emails?

 *  Resolved [LesTexas60](https://wordpress.org/support/users/lestexas60/)
 * (@lestexas60)
 * [8 years ago](https://wordpress.org/support/topic/send-notification-to-conditional-emails/)
 * I see the to option on the notification email is set to an admin variable.
    I
   would like to create 1 form and put it on 30 different pages. When a user completes
   the form it will be sent to one of 30 different people based on the page they
   were on. It would seem if I created a hidden variable on the page, I could set
   that variable to the specific groups email. Could I then use that variable for
   the “To” notification?
 * I don’t want to have to create 30 identical forms and then have to modify all
   30 if there is a change. It would be a type of conditional field.
 * Thank you for any help or suggestions.

Viewing 1 replies (of 1 total)

 *  Plugin Support [Curtis](https://wordpress.org/support/users/curtisbrownlee/)
 * (@curtisbrownlee)
 * [8 years ago](https://wordpress.org/support/topic/send-notification-to-conditional-emails/#post-10579709)
 * Hi,
 * If the custom code you are using can update the hidden field (such as by using
   jQuery), then you could map that hidden field within the “TO” address.
 * There is developer documentation which is provided as-is and also a Developer
   Slack channel where coders can give advice on how to achieve custom code goals:
   
   Codex: [http://developer.ninjaforms.com/codex/](http://developer.ninjaforms.com/codex/)
   Slack channel: [http://developer.ninjaforms.com/slack](http://developer.ninjaforms.com/slack)
 * The document below discusses how to update fields:
    [https://developer.ninjaforms.com/codex/changing-field-values/](https://developer.ninjaforms.com/codex/changing-field-values/)
 * Alternatively, if your pages contained a querystring, you could have your Ninja
   Form pull that value out of the URL. Within your form, you would then add an 
   Email Action for each page/email group and set the conditional logic to only 
   process an email based on what the value of the hidden field is.
 * Querystrings ([https://ninjaforms.com/docs/querystrings/](https://ninjaforms.com/docs/querystrings/))
 * You can read more about the Conditional Logic add-on below:
    Conditional Logic
   Add-on ([https://ninjaforms.com/extensions/conditional-logic/](https://ninjaforms.com/extensions/conditional-logic/))
   Conditional Logic Documentation([https://ninjaforms.com/docs/conditional-logic/](https://ninjaforms.com/docs/conditional-logic/))
 * I hope that this helps to guide you in the right direction.
 * Because we only check these forums once per week, we strongly encourage you to
   reach out to us here with any followup questions in order to get a timely response:
   [https://ninjaforms.com/contact/](https://ninjaforms.com/contact/) There, we 
   offer support free support directly to our Ninja Forms users with significantly
   more privacy and a faster response time.
    -  This reply was modified 8 years ago by [Curtis](https://wordpress.org/support/users/curtisbrownlee/).

Viewing 1 replies (of 1 total)

The topic ‘Send Notification to conditional emails?’ is closed to new replies.

 * ![](https://ps.w.org/ninja-forms/assets/icon-256x256.png?rev=1649747)
 * [Ninja Forms - The Contact Form Builder That Grows With You](https://wordpress.org/plugins/ninja-forms/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ninja-forms/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ninja-forms/)
 * [Active Topics](https://wordpress.org/support/plugin/ninja-forms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ninja-forms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ninja-forms/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Curtis](https://wordpress.org/support/users/curtisbrownlee/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/send-notification-to-conditional-emails/#post-10579709)
 * Status: resolved