JavaScript field: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
mNo edit summary
mNo edit summary
Line 12: Line 12:


== Fields of an entry ==
== Fields of an entry ==
Function ''field("[field name]")'' is used to get access to the values of other entry fields.
Function '''''field("[field name]")''''' is used to get access to the values of other entry fields.
The type of the JavaScript object returned by the function depends on the field type.
The type of the JavaScript object returned by the function depends on the field type.


Line 20: Line 20:
! Field type !! JavaScript object
! Field type !! JavaScript object
|-
|-
| Text , Hyperlink, Password, Phone, Email, Calculation (string result) , Single-choice list , Radio buttons || [https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String String]
| Text , Hyperlink, Password, Phone, Email, Calculation (string result) , Single-choice list , Radio buttons || [https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String '''String''']
|-
|-
| Integer, Real number, Rating, Currency, Calculation (number result) || [https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number Number]
| Integer, Real number, Rating, Currency, Calculation (number result) || [https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number '''Number''']
|-
|-
| Date , Date/Time, Time || [https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Date Date]
| Date , Date/Time, Time || [https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Date '''Date''']
|-
|-
| Boolean || [https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean Boolean]
| Boolean || [https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean '''Boolean''']
|-
|-
| Multiple-choice list, Checkboxes || [https://developer.mozilla.org/ru/docs/Web/JavaScript/Reference/Global_Objects/Array Array of String]
| Multiple-choice list, Checkboxes || [https://developer.mozilla.org/ru/docs/Web/JavaScript/Reference/Global_Objects/Array '''Array of String''']
|-
|-
| Link to entry || Array of entries. Each array element has method field for access to values of linked entry.
| Link to entry || Array of entries. Each array element has method field for access to values of linked entry.

Navigation menu