Triggers: Difference between revisions

5 bytes removed ,  6 October 2016
m
no edit summary
mNo edit summary
mNo edit summary
Line 437: Line 437:
The phone number will be obtained from the field Phone and the text of the message will be obtained from the fields ContactName and Notes.
The phone number will be obtained from the field Phone and the text of the message will be obtained from the fields ContactName and Notes.


<source lang="javascript" line>
<source lang="javascript">
msg = "Dear, " + entry().field("ContactName") +
msg = "Dear, " + entry().field("ContactName") +
     "\n" + entry().field("Notes")                // Form the message from ContactName & Notes
     "\n" + entry().field("Notes")                // Form the message from ContactName & Notes