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.

Notifications

  1. I have this form here
    https://greenprintlawns.com/10point/

    I would like the admin notification email to be received from the technician who performed the service in the from field so the office knows who performed the service..

    is there a way to populate the from email notification to admin field based on which of the 3 technicians performed the service so the office knows who performed what on who's yard..

    Right now I just have two of the guys emails in the from field so when the office receives the notification there is know way to distinguish who actually performed it..
    http://logoicons.s3.amazonaws.com/fromfield.jpg

    Posted 8 years ago on Tuesday August 30, 2011 | Permalink
  2. I think you can use the gform_pre_submission_filter.
    http://www.gravityhelp.com/documentation/page/Gform_pre_submission_filter

    The example on that page shows setting up the BCC based on inputs in the form. You would set the "from email" based on input in your form.

    Posted 8 years ago on Tuesday August 30, 2011 | Permalink
  3. In your screenshot, you will be sending to and from the same technician? The routing appears to be set up to send to the same addresses that are in your current "from email." I figured you wanted the email to come from the technician who filled out the form, and be sent to the office. In that case, the routing would not be required on the "to" but would all go to one office email. Then the "from email" would be set using the gform_pre_submission_filter.

    The routing can be separate from the "from email" but I'm not sure what all the actual addresses will be. Are any of the email addresses repeated?

    Posted 8 years ago on Tuesday August 30, 2011 | Permalink
  4. right... i want each tech to get a copy of his own 10 point analysis so i have set if jim tieken is selected.. then send to jtieken at greenprintlawns.com then i have a , on each of them and included the office rep in on them.... guess i could just have put the office rep on the bcc....

    basically just need to figure out how to make the from change based on the selected tech.... i will

    cmcfarland would get all submissions (office rep).... would want the email he gets to come from the tech who performed the analysis and the customer who receives the report would be able to reply to the tech that performed the analysis..

    techs... jtieken at greenprintlawns.com
    tbramlett at greenprintlawns.com
    sanzivino at greenprintlawns.com

    Office rep... cmcfarland at greenprintlawns.com

    I looked at the link but was a little lost... lol, thanks for the help though

    Posted 8 years ago on Wednesday September 7, 2011 | Permalink
  5. When a tech fills out a form, one copy should go to the office manager, and one should be sent to the tech himself. And all the copies should come FROM the tech who submitted the form. Is that correct?

    There may be an issue with spam filters having the email come TO who it was sent FROM, but you can work around that later.

    If you can confirm this is what you want, I will write something up for you. Thanks.

    Posted 8 years ago on Wednesday September 7, 2011 | Permalink
  6. Yep that's correct and a copy also goes to the customer... the tech fills out the customer email and addresss on the form itself so that the customer know what was performed on his or her lawn.

    right now... if a customer replies to the notification.. i have showing it is coming from support at greenprintlawns.com so they reply to the office but I may need that to show the techs from email also so the reply goes to the actual tech if the customer replies... discussing that with office now... thank you... Scott

    http://greenprintlawns.com/10point/

    Posted 8 years ago on Wednesday September 7, 2011 | Permalink
  7. You have some unique notification requirements. Let me see if I have this correct.

    Tech completes a service and fills out form. Form will have the customer's email address in it. When the form is submitted, the notification should come From the tech. The following people need notifications:

    1. customer (actual email)
    2. office (admin notification)
    3. tech (copy for himself, could be admin or visitor)

    I think most of that can be set up in the notification screen. The only thing we need to do is override the "From" email address, so the office and the customer, if they reply, are replying to the tech?

    Posted 8 years ago on Thursday September 8, 2011 | Permalink
  8. yep , that is correct.... all based on the tech selected who performed the service on the dropdown

    Posted 8 years ago on Saturday September 10, 2011 | Permalink
  9. It takes just a little bit of code added to your theme's functions.php

    http://pastebin.com/xGaKYPAH

    I looked at your page and I think you are using form 2 so this code should be correct. If you want to use this for a different form, change the "_2" in line 3 to your form ID. If you wanted to apply this code to form 17, line 3 would look like this:

    [php]
    
    add_action('gform_pre_submission_filter_17', 'set_from_email');

    The other thing you need to change is line 6 to the actual field in your form that contains the value of the email address. I noticed you used radio buttons for the technician names. I looked at your form and I believe input_19 is correct for the technician name. Be sure you enable values and then insert the email address for each tech as the value. That will properly work with the code in line 6 here.

    [php]
            $techemail = rgpost('input_19');

    You will need to set up your admin and customer notifications in the form builder. The one thing that will be overridden in two places is the "from" email. You'll need to enter something there, but it does not matter since we will override it with this function.

    You can submit the form here and you will receive a copy of the customer notification and see that it comes "from" the email address of the technician who submitted the form.

    http://gravity.chrishajer.com/record-of-technician-service/
    Password is greenprint

    If you have any questions, please let us know.

    Posted 8 years ago on Tuesday September 13, 2011 | Permalink
  10. just saw this chris thank you, i will try to implement this today... i am subscribed to this post but have not been getting updates via email lately for some reason when subscribing to topics here... thanks for working on this again..

    Scott

    Posted 8 years ago on Wednesday September 21, 2011 | Permalink
  11. Subscribe to topic in bbPress (the forum software in use here) is flaky. Please do check in. Thanks

    Posted 8 years ago on Wednesday September 21, 2011 | Permalink