PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Change name and email fields dynamically based on a drop down menu

  1. elinet
    Member

    Hi,
    I searched in the forum but I didnt find something for me.
    I have the need to change the sender name and email fields of the user notificaton email.
    In my registration form I have a drop down where the user specify where he want to registate. So the sender name and email fields of the user notificaton email may change in according the user choice in that drop down menu.

    For istance, if in the drop down menu the user choose "Society Two" instead of "Society One", the sender name and email fields may be "Society Two name" and "societytwo@mail.com".

    How could I reach somethign like this?

    Thanks

    Posted 12 years ago on Tuesday December 20, 2011 | Permalink
  2. That is called routing and is built into the form notifications. Add the drop down to your form with the recipients names. Then in the form builder on the Notifications tab, click the radio button for "routing" and you will be able to select "If the recipient selection is "Society Two" then send email to society2@gmail.com"

    You can see the routing radio button in this screenshot:
    http://www.gravityhelp.com/documentation/page/File:Notifications-to-administrator.png

    And more about notifications here:
    http://www.gravityhelp.com/documentation/page/Notifications

    Posted 12 years ago on Wednesday December 21, 2011 | Permalink
  3. elinet
    Member

    Yes I know what routing for administratior notification, indeed I use it too. What I need is a solution to concernig the user notification. I want a solution to change dinamically name and email fields in the user notification section.

    Posted 12 years ago on Wednesday December 21, 2011 | Permalink
  4. elinet
    Member

    To be more specific, I need to populate dinamically the NAME and FROM email field of the user notification section.

    Posted 12 years ago on Wednesday December 21, 2011 | Permalink
  5. Tell me what you want to do exactly. This is for your user notification. What will be in the form and what needs to happen in the user notification?

    The user notification is designed to go the the user who submitted the form, but it sounds like you are trying to do something else with it. It's possible to control the notifications like this, but will require some customization and code added to your theme's functions.php

    Posted 12 years ago on Wednesday December 21, 2011 | Permalink
  6. elinet
    Member

    Ok thanks for the patience.
    In my form I have a drop down menu with some company names. The user must specify the company he want to registrate in. I want that the user receives the mail from the company he registered, so to do this I have to customize the NAME FROM and EMAIL FROM fields in the user notification setting, but actually it is not possible to do because those fields are static.

    Hope it is clear enough

    thanks

    Posted 12 years ago on Thursday December 22, 2011 | Permalink