Write, Bureaucrats, Administrators
4,332
edits
mNo edit summary |
mNo edit summary |
||
Line 13: | Line 13: | ||
== Fields of an entry == | == Fields of an entry == | ||
Function '''''field(" | Function '''''field("fieldName")''''' is used to get access to the values of 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 31: | Line 31: | ||
| 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 a method ''field()'' for access to values of the linked entry. | | Link to entry || Array of entries. Each array element has a method ''field()'' for access to values of fields of the linked entry.<br/>Example: field("linkField")[i].field("remoteField") | ||
|} | |} | ||