Template:FieldTypeReturnValues: Difference between revisions

From Memento Database Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
{| class="wikitable" style="font-size:120%"
{| class="wikitable" style="font-size:120%"
|+ colspan="3" | Field Type Return Values
|+ Field Type Return Values
|-
|-
! Field type !! JavaScript object !! Examples
! Field type !! JavaScript object !! Examples

Revision as of 03:50, 18 February 2017

Field Type Return Values
Field type JavaScript object Examples
Text , Hyperlink, Password, Phone, Email, Calculation (string result), Radio buttons, Single-choice list String "abc"
Integer, Real number, Rating, Currency, Calculation (number result) Number 42, 42.1
Date , DateTime, Time Date
Checkbox (Boolean) Boolean true, false
Checkboxes, Multiple-choice list Array of String ["Shirts", "Pants", "Socks"]
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("localField")[i].field("remoteField")
[e1, e2, e3]