Template:FieldTypeReturnValues: Difference between revisions

Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 4: Line 4:
! Field type !! JavaScript object !! Examples
! Field type !! JavaScript object !! Examples
|-
|-
| width="30%" | Text , Hyperlink, Password, Phone, Email, Calculation (string result), Radio buttons, Single-choice list
| width="30%" | Text , Hyperlink, Password, Phone, Email, Barcode, Radio buttons, Single-choice list, Calculation (string result)
| width="42%" | [https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String '''String''']
| width="42%" | [https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String '''String''']
| width="28%" | "abc"
| width="28%" | "abc"
|-
|-
| Integer, Real number, Rating, Currency, Calculation (number result)
| Integer, Real number, Integer values, Rating, Currency, Calculation (number result)
| [https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number '''Number''']
| [https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number '''Number''']
| 42, 42.1
| 42, 42.1
Line 29: Line 29:
| Link to entry
| Link to entry
| [https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array '''Array'''] of [[Triggers#Object Entry|'''Entry''']]<br/>Each array element has a method ''field()'' for access to values of fields of entries of the linked library. Example:<br/>field("localField")[i].field("remoteField")
| [https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array '''Array'''] of [[Triggers#Object Entry|'''Entry''']]<br/>Each array element has a method ''field()'' for access to values of fields of entries of the linked library. Example:<br/>field("localField")[i].field("remoteField")
| [e1, e2, e3]
| [e1, e2, e3, ...]
|}
|}