Template:FieldTypeReturnValues: Difference between revisions

From Memento Database Wiki
Jump to navigation Jump to search
(Created page with "{| class="wikitable" style="font-size:120%" |- ! Field type !! JavaScript object !! Examples |- | Text , Hyperlink, Password, Phone, Email, Calculation (string result) , Singl...")
 
mNo edit summary
Line 20: Line 20:
| Multiple-choice list, Checkboxes
| Multiple-choice list, Checkboxes
| [https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array '''Array'''] of [https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String '''String''']
| [https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array '''Array'''] of [https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String '''String''']
| ["Bats", "Balls", Gloves"]
|-
|-
| Link to entry
| Link to entry

Revision as of 03:00, 18 February 2017

Field type JavaScript object Examples
Text , Hyperlink, Password, Phone, Email, Calculation (string result) , Single-choice list , Radio buttons String "abc"
Integer, Real number, Rating, Currency, Calculation (number result) Number 42, 42.1
Date , DateTime, Time Date
Checkbox (Boolean) Boolean true, false
Multiple-choice list, Checkboxes Array of String ["Bats", "Balls", Gloves"]
Link to entry Array of Entry
Each array element has a method field() for access to values of fields of entries of the linked library.
Example: field("linkField")[i].field("remoteField")
[e1, e2, e3]