Forum Post: RE: How can i send email on change of fields in single trigger

  • Thread starter Thread starter Gian Torralba
  • Start date Start date
Status
Not open for further replies.
G

Gian Torralba

Guest
In this case you can just use the update field value trigger and then create a string return containing all field values e.g var val = "{!firstname#value},{!phone#value}"; return val; After that when comparing the fields to the value use this: var arr = "{!textarea#value}"; arr = arr.split(); //this will convert the string int an array; var username = arr[0]; var phone = arr[1]; //then add the condition as mention before if(username != " {!firstname#value}") // send email Please note that the formula field that will be displayed in the email will contain a code similar to this to check if the value is changed or not. Thanks, Gian

Continue reading...
 
Status
Not open for further replies.
Back
Top