Starter project for KWIZ Forms APIs.
Fork this project, do not npm install / add it.
Keep /types folder un-touched.
put shared code under /helpers put list apis under /lists/{list_token} add list_token to build.tokens
build output will include all js and css files with the right name for that list. All you have to do is drop it into the site assets library (see path below)
Either paste it into the code editors, or uplaod the JS file into your site:
~site/SiteAssets/kwizcom/modernui/[list guid]_[project-name].js
{
"pageType": 8,
"webUrl": "/sites/site1",
"listId": "05098c94-3c72-4a58-bfdd-4e335321d599",
"itemId": null - or - item ID: 5,
"listTitle": "List Title",
"fields": [
//fieldMap in an array
],
"fieldMap": {
"Title": {
"DefaultFormula": null,
"DefaultValue": null,
"Description": "",
"EnforceUniqueValues": false,
"EntityPropertyName": "Title",
"Filterable": true,
"Hidden": false,
"InternalName": "Title",
"JSLink": "clienttemplates.js",
"ReadOnlyField": false,
"Required": false,
"SchemaXml": "<Field ID=\"{fa564e0f-0c70-4ab9-b863-0177e6ddd247}\" Type=\"Text\" Name=\"Title\" DisplayName=\"Title\" Required=\"FALSE\" SourceID=\"http://schemas.microsoft.com/sharepoint/v3\" StaticName=\"Title\" FromBaseType=\"TRUE\" MaxLength=\"255\" ColName=\"nvarchar1\" RowOrdinal=\"0\" />",
"Sortable": true,
"StaticName": "Title",
"Title": "Title",
"FieldTypeKind": 2,
"TypeAsString": "Text",
"TypeDisplayName": "Single line of text",
"TypeShortDescription": "Single line of text",
"ValidationFormula": null,
"ValidationMessage": null,
"MaxLength": 255,
"OutputTypeAsString": "Text"
},
"Itinerary": {
...
"SchemaXml": "<Field DisplayName=\"Itinerary\" Type=\"LookupMulti\" Mult=\"TRUE\" WebId=\"{c941aa54-e629-4b4b-81b1-69c9cb3b5a5e}\" List=\"{674f0112-3584-48ac-a321-b069203cda3a}\" ShowField=\"Title\" ID=\"{a06558b3-6852-4d00-97c7-82e32d359016}\" Version=\"2\" Name=\"Itinerary\" StaticName=\"Itinerary\" SourceID=\"{05098c94-3c72-4a58-bfdd-4e335321d599}\" ColName=\"int1\" RowOrdinal=\"0\" />",
"FieldTypeKind": 7,
"TypeAsString": "LookupMulti",
"TypeDisplayName": "Lookup",
"LookupField": "Title",
"LookupList": "{674f0112-3584-48ac-a321-b069203cda3a}",
"LookupWebId": "c941aa54-e629-4b4b-81b1-69c9cb3b5a5e",
"RelationshipDeleteBehavior": 0,
"OutputTypeAsString": "LookupMulti"
}
},
"groups": [],
"visibleGroups": [],
"container": "Main" / Repeating rows: "Field" / new item dialog: "Dialog",
"containerId": "Main" / Repeating rows / Dialog: "FieldInternalName",
"allFieldsMap": {
// Same as fieldMap but includes system fields
},
"isPrintPreview": false,
"reverseLookups": {}
}