Triggers: Difference between revisions

Jump to navigation Jump to search
1,164 bytes added ,  29 December 2016
m
no edit summary
mNo edit summary
mNo edit summary
Line 577: Line 577:
-----
-----
<br/>
<br/>
== Built-in objects for certain Memento field types ==
=== Object ''JSContact'' ===
This object contains the information stored within a Contact field and provides properties and methods for use in accessing and manipulating this information.
When an Entry object's field() method is called, if the Memento field type is Contact, a JSContact object is returned.
==== JSContact Methods ====
:; hasNext(): Returns TRUE if there is a next JSContact object, otherwise FALSE
:; next(): Returns the next JSContact object, if there is one, otherwise null
:; show(): Opens the Contacts app for this contact
:; call(): If the device is a phone, calls the primary phone number of this contact
:; sendSMS(message): If the device is a phone, sends the provided ''message'' as an SMS message to the primary phone number of this contact
:; sendEmail(subject, message): Sends an email message to the primary email address of this contact, with subject ''subject'' and message ''message''.
==== JSContact Properties ====
:; fullName: The full Name of this contact
:; phone: The primary phone number of this contact
:; email: The primary email address of this contact


== Interaction with the System ==
== Interaction with the System ==

Navigation menu