diff --git a/mocks/mocks/data/formio-api/form-select-v1.json b/mocks/mocks/data/formio-api/form-select-v1.json new file mode 100644 index 000000000..d27bf03a9 --- /dev/null +++ b/mocks/mocks/data/formio-api/form-select-v1.json @@ -0,0 +1,643 @@ +{ + "_id": "65c5fb2df4cdb19cc1e4ffa7", + "title": "Tester nedtrekksmeny", + "name": "testSelect", + "path": "testselect", + "type": "form", + "display": "wizard", + "tags": [ + "nav-skjema", + "" + ], + "access": [ + { + "type": "read_all", + "roles": [ + "000000000000000000000000" + ] + }, + { + "type": "update_all", + "roles": [ + "628ca77305690db58c974d05", + "628ca77305690db58c974d06" + ] + } + ], + "owner": "G123456", + "components": [ + { + "title": "Veiledning", + "type": "panel", + "input": false, + "key": "veiledning", + "theme": "default", + "components": [ + { + "validate": { + "required": true, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false, + "onlyAvailableItems": true + }, + "label": "Velg instrument", + "key": "velgInstrument", + "input": true, + "tableView": false, + "type": "navSelect", + "data": { + "values": [ + { + "label": "Piano", + "value": "piano" + }, + { + "value": "trekkspill", + "label": "Trekkspill" + }, + { + "value": "gitar", + "label": "Gitar" + }, + { + "value": "munnspill", + "label": "Munnspill" + }, + { + "value": "klarinett", + "label": "Klarinett" + }, + { + "value": "trommer", + "label": "Trommer" + }, + { + "value": "cello", + "label": "Cello" + }, + { + "value": "fiolin", + "label": "Fiolin" + }, + { + "value": "harpe", + "label": "Harpe" + }, + { + "value": "tuba", + "label": "Tuba" + }, + { + "value": "blokkfloyte", + "label": "Blokkfløyte" + } + ] + }, + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "dataGridLabel": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "attributes": {}, + "validateOn": "blur", + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "fieldSize": "input--xxl", + "dataSrc": "values", + "id": "ea6bvue", + "keyModified": true, + "navId": "edxtdnc" + }, + { + "fieldSize": "input--xxl", + "description": "", + "validate": { + "required": true, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "errors": "", + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "customConditional": "", + "label": "Velg land du vil reise til", + "key": "velgLand", + "input": true, + "tableView": false, + "type": "landvelger", + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "dataGridLabel": false, + "labelPosition": "top", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "attributes": {}, + "validateOn": "blur", + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "dataSrc": "url", + "data": { + "url": "http://localhost:3001/fyllut/api/countries?lang=nb" + }, + "disableLimit": true, + "id": "eupbhut", + "defaultValue": null, + "navId": "e9ly9xe" + }, + { + "fieldSize": "input--m", + "description": "", + "validate": { + "required": true, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "errors": "", + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "customConditional": "", + "label": "Velg valuta du vil betale med", + "key": "velgValutaDuVilBetaleMed", + "input": true, + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "tableView": false, + "modalEdit": false, + "dataGridLabel": true, + "labelPosition": "top", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "attributes": {}, + "validateOn": "blur", + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "type": "valutavelger", + "dataSrc": "url", + "data": { + "url": "http://localhost:3001/fyllut/api/common-codes/currencies?lang=nb" + }, + "disableLimit": true, + "id": "edyinrd", + "defaultValue": null, + "navId": "egnm2bi" + } + ], + "id": "egrw3k", + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": false, + "hidden": false, + "clearOnHide": false, + "refreshOn": "", + "redrawOn": "", + "tableView": false, + "modalEdit": false, + "label": "Panel", + "dataGridLabel": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "attributes": {}, + "validateOn": "change", + "validate": { + "required": false, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "tree": false, + "lazyLoad": false, + "breadcrumb": "default", + "navId": "ep0geuq" + }, + { + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "customConditional": "", + "title": "Vedlegg", + "key": "vedlegg", + "type": "panel", + "input": false, + "theme": "default", + "isAttachmentPanel": true, + "components": [ + { + "description": "", + "additionalDescriptionText": "", + "validate": { + "required": true, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "errors": "", + "properties": { + "vedleggstittel": "Kursbevis piano", + "vedleggskode": "P2" + }, + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "customConditional": "show = data.velgInstrument.value === 'piano'", + "label": "Kursbevis på fullført pianoopplæring", + "additionalDescriptionLabel": "", + "key": "kursbevisPaFullfortPianoopplaering", + "values": [ + { + "value": "leggerVedNaa", + "label": "Jeg legger det ved denne søknaden (anbefalt)" + }, + { + "value": "ettersender", + "label": "Jeg ettersender dokumentasjonen senere (jeg er klar over at NAV ikke kan behandle søknaden før jeg har levert dokumentasjonen)" + }, + { + "value": "levertTidligere", + "label": "Jeg har levert denne dokumentasjonen tidligere" + } + ], + "type": "radiopanel", + "input": true, + "clearOnHide": true, + "validateOn": "blur", + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "refreshOn": "", + "redrawOn": "", + "tableView": false, + "modalEdit": false, + "dataGridLabel": true, + "labelPosition": "top", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "attributes": {}, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "allowMultipleMasks": false, + "addons": [], + "fieldSize": "input--xxl", + "dataSrc": "values", + "id": "e6jr9kk", + "defaultValue": null, + "navId": "e772p7" + }, + { + "label": "Annen dokumentasjon", + "description": "Har du noen annen dokumentasjon du ønsker å legge ved?", + "type": "radiopanel", + "key": "annenDokumentasjon", + "otherDocumentation": true, + "input": true, + "clearOnHide": true, + "validate": { + "required": true, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "properties": { + "vedleggstittel": "Annet", + "vedleggskode": "N6" + }, + "values": [ + { + "value": "nei", + "label": "Nei, jeg har ingen ekstra dokumentasjon jeg vil legge ved." + }, + { + "value": "leggerVedNaa", + "label": "Ja, jeg legger det ved denne søknaden." + }, + { + "value": "ettersender", + "label": "Jeg ettersender dokumentasjonen senere." + } + ], + "id": "eaox88w", + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "refreshOn": "", + "redrawOn": "", + "tableView": false, + "modalEdit": false, + "dataGridLabel": true, + "labelPosition": "top", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "attributes": {}, + "validateOn": "blur", + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "allowMultipleMasks": false, + "addons": [], + "fieldSize": "input--xxl", + "dataSrc": "values", + "navId": "e9er54e" + } + ], + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": false, + "hidden": false, + "clearOnHide": false, + "refreshOn": "", + "redrawOn": "", + "tableView": false, + "modalEdit": false, + "label": "Panel", + "dataGridLabel": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "attributes": {}, + "validateOn": "change", + "validate": { + "required": false, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "tree": false, + "lazyLoad": false, + "breadcrumb": "default", + "id": "ergxd8", + "navId": "emsssqm" + } + ], + "properties": { + "skjemanummer": "Test-select", + "tema": "BIL", + "innsending": "PAPIR_OG_DIGITAL", + "ettersending": "PAPIR_OG_DIGITAL", + "signatures": [ + { + "label": "", + "description": "", + "key": "f75c7daa-c496-438e-b39f-b9cf6dfe6312" + } + ], + "isTestForm": false, + "modified": "2024-02-09T10:39:19.651Z", + "modifiedBy": "Testesen, Test" + }, + "project": "628ca77305690db58c974cfd", + "revisions": "", + "submissionRevisions": "", + "_vid": 0, + "submissionAccess": [], + "created": "2024-02-09T10:15:09.699Z", + "modified": "2024-02-09T10:39:20.000Z", + "machineName": "jvcemxwcpghcqjn:testSelect" +} diff --git a/mocks/mocks/data/formio-api/form-select-v2.json b/mocks/mocks/data/formio-api/form-select-v2.json new file mode 100644 index 000000000..942a827ad --- /dev/null +++ b/mocks/mocks/data/formio-api/form-select-v2.json @@ -0,0 +1,550 @@ +{ + "_id": "65c5fb2df4cdb19cc1e4ffa7", + "title": "Tester nedtrekksmeny", + "name": "testSelect", + "path": "testselect", + "type": "form", + "display": "wizard", + "tags": [ + "nav-skjema", + "" + ], + "access": [ + { + "type": "read_all", + "roles": [ + "000000000000000000000000" + ] + }, + { + "type": "update_all", + "roles": [ + "628ca77305690db58c974d05", + "628ca77305690db58c974d06" + ] + } + ], + "owner": "G123456", + "components": [ + { + "title": "Veiledning", + "type": "panel", + "input": false, + "key": "veiledning", + "theme": "default", + "components": [ + { + "validate": { + "required": true, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false, + "onlyAvailableItems": true + }, + "label": "Velg instrument", + "key": "velgInstrument", + "input": true, + "tableView": false, + "type": "navSelect", + "data": { + "values": [ + { + "value": "trekkspill", + "label": "Trekkspill" + }, + { + "value": "gitar", + "label": "Gitar" + }, + { + "value": "munnspill", + "label": "Munnspill" + }, + { + "value": "klarinett", + "label": "Klarinett" + }, + { + "value": "trommer", + "label": "Trommer" + }, + { + "value": "cello", + "label": "Cello" + }, + { + "value": "fiolin", + "label": "Fiolin" + }, + { + "value": "harpe", + "label": "Harpe" + }, + { + "value": "tuba", + "label": "Tuba" + }, + { + "value": "blokkfloyte", + "label": "Blokkfløyte" + } + ] + }, + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "dataGridLabel": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "attributes": {}, + "validateOn": "blur", + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "fieldSize": "input--xxl", + "dataSrc": "values", + "id": "ea6bvue", + "keyModified": true, + "navId": "edxtdnc" + }, + { + "fieldSize": "input--xxl", + "description": "", + "validate": { + "required": true, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "errors": "", + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "customConditional": "", + "label": "Velg land du vil reise til", + "key": "velgLand", + "input": true, + "tableView": false, + "type": "landvelger", + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "dataGridLabel": false, + "labelPosition": "top", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "attributes": {}, + "validateOn": "blur", + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "dataSrc": "url", + "data": { + "url": "http://localhost:3001/fyllut/api/countries?lang=nb" + }, + "disableLimit": true, + "id": "eupbhut", + "defaultValue": null, + "navId": "e9ly9xe" + }, + { + "fieldSize": "input--m", + "description": "", + "validate": { + "required": true, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "errors": "", + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "customConditional": "", + "label": "Velg valuta du vil betale med", + "key": "velgValutaDuVilBetaleMed", + "input": true, + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "tableView": false, + "modalEdit": false, + "dataGridLabel": true, + "labelPosition": "top", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "attributes": {}, + "validateOn": "blur", + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "type": "valutavelger", + "dataSrc": "url", + "data": { + "url": "http://localhost:3001/fyllut/api/common-codes/currencies?lang=nb" + }, + "disableLimit": true, + "id": "edyinrd", + "defaultValue": null, + "navId": "egnm2bi" + } + ], + "id": "egrw3k", + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": false, + "hidden": false, + "clearOnHide": false, + "refreshOn": "", + "redrawOn": "", + "tableView": false, + "modalEdit": false, + "label": "Panel", + "dataGridLabel": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "attributes": {}, + "validateOn": "change", + "validate": { + "required": false, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "tree": false, + "lazyLoad": false, + "breadcrumb": "default", + "navId": "ep0geuq" + }, + { + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "customConditional": "", + "title": "Vedlegg", + "key": "vedlegg", + "type": "panel", + "input": false, + "theme": "default", + "isAttachmentPanel": true, + "components": [ + { + "label": "Annen dokumentasjon", + "description": "Har du noen annen dokumentasjon du ønsker å legge ved?", + "type": "radiopanel", + "key": "annenDokumentasjon", + "otherDocumentation": true, + "input": true, + "clearOnHide": true, + "validate": { + "required": true, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "properties": { + "vedleggstittel": "Annet", + "vedleggskode": "N6" + }, + "values": [ + { + "value": "nei", + "label": "Nei, jeg har ingen ekstra dokumentasjon jeg vil legge ved." + }, + { + "value": "leggerVedNaa", + "label": "Ja, jeg legger det ved denne søknaden." + }, + { + "value": "ettersender", + "label": "Jeg ettersender dokumentasjonen senere." + } + ], + "id": "eaox88w", + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "refreshOn": "", + "redrawOn": "", + "tableView": false, + "modalEdit": false, + "dataGridLabel": true, + "labelPosition": "top", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "attributes": {}, + "validateOn": "blur", + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "allowMultipleMasks": false, + "addons": [], + "fieldSize": "input--xxl", + "dataSrc": "values", + "navId": "e9er54e" + } + ], + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": false, + "hidden": false, + "clearOnHide": false, + "refreshOn": "", + "redrawOn": "", + "tableView": false, + "modalEdit": false, + "label": "Panel", + "dataGridLabel": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "attributes": {}, + "validateOn": "change", + "validate": { + "required": false, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "tree": false, + "lazyLoad": false, + "breadcrumb": "default", + "id": "ergxd8", + "navId": "emsssqm" + } + ], + "properties": { + "skjemanummer": "Test-select", + "tema": "BIL", + "innsending": "PAPIR_OG_DIGITAL", + "ettersending": "PAPIR_OG_DIGITAL", + "signatures": [ + { + "label": "", + "description": "", + "key": "f75c7daa-c496-438e-b39f-b9cf6dfe6312" + } + ], + "isTestForm": false, + "modified": "2024-02-09T10:39:19.651Z", + "modifiedBy": "Testesen, Test" + }, + "project": "628ca77305690db58c974cfd", + "revisions": "", + "submissionRevisions": "", + "_vid": 0, + "submissionAccess": [], + "created": "2024-02-09T10:15:09.699Z", + "modified": "2024-02-09T10:39:20.000Z", + "machineName": "jvcemxwcpghcqjn:testSelect" +} diff --git a/mocks/mocks/data/formio-api/nav083501.json b/mocks/mocks/data/formio-api/nav083501.json new file mode 100644 index 000000000..d1f93dc1e --- /dev/null +++ b/mocks/mocks/data/formio-api/nav083501.json @@ -0,0 +1,6352 @@ +{ + "_id": "623b1d8881df996a710a4a17", + "title": "Inntektsopplysninger for selvstendig næringsdrivende og/eller frilansere som skal ha sykepenger", + "name": "nav083501", + "path": "nav083501", + "type": "form", + "display": "wizard", + "tags": [ + "nav-skjema", + "" + ], + "owner": "61fa507090dab10003260072", + "components": [ + { + "title": "Veiledning", + "type": "panel", + "input": false, + "key": "veiledning", + "theme": "default", + "components": [ + { + "label": "Veiledningstekst", + "labelWidth": "", + "labelMargin": "", + "tag": "p", + "className": "", + "attrs": [ + { + "attr": "", + "value": "" + } + ], + "content": "Dette skjemaet skal du fylle ut når du skal søke om sykepenger fra NAV. Du skal kun fylle ut og sende inn dette skjemaet én gang. \r\nHvis du sender inn nye sykepengekrav (forlengelser) skal du ikke fylle ut skjemaet.

\r\nHvis du er friskmeldt i mer enn seksten dager, skal nytt skjema sendes inn til NAV.

\r\n\r\nHvis du i løpet av de siste fire årene har startet næringsvirksomhet, \r\neller fått en varig endring av arbeidssituasjonen/virksomheten, må du dokumentere dette.", + "refreshOnChange": false, + "customClass": "", + "hidden": false, + "modalEdit": false, + "contentForPdf": "", + "key": "veiledningstekst", + "tags": [], + "properties": {}, + "conditional": { + "show": null, + "when": null, + "eq": "", + "json": "" + }, + "customConditional": "", + "logic": [], + "attributes": {}, + "overlay": { + "style": "", + "page": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "addons": [], + "type": "htmlelement", + "input": false, + "tableView": false, + "placeholder": "", + "prefix": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "dataGridLabel": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "validateOn": "change", + "validate": { + "required": false, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "allowMultipleMasks": false, + "id": "e68wfq", + "navId": "e64vdls", + "fieldSize": "input--xxl" + } + ], + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": false, + "hidden": false, + "clearOnHide": false, + "refreshOn": "", + "redrawOn": "", + "tableView": false, + "modalEdit": false, + "label": "Panel", + "dataGridLabel": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "attributes": {}, + "validateOn": "change", + "validate": { + "required": false, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "tree": false, + "lazyLoad": false, + "breadcrumb": "default", + "id": "ewr3z6", + "navId": "e0eyw2" + }, + { + "title": "Dine opplysninger", + "labelWidth": "", + "labelMargin": "", + "theme": "default", + "breadcrumb": "default", + "breadcrumbClickable": true, + "buttonSettings": { + "previous": true, + "cancel": true, + "next": true + }, + "navigateOnEnter": false, + "saveOnEnter": false, + "scrollToTop": false, + "tooltip": "", + "customClass": "", + "collapsible": false, + "hidden": false, + "hideLabel": false, + "disabled": false, + "modalEdit": false, + "key": "dineOpplysninger", + "tags": [], + "properties": {}, + "customConditional": "", + "conditional": { + "json": "", + "show": null, + "when": null, + "eq": "" + }, + "nextPage": "", + "logic": [], + "attributes": {}, + "overlay": { + "style": "", + "page": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "addons": [], + "type": "panel", + "label": "Dine opplysninger", + "tabindex": "", + "input": false, + "components": [ + { + "label": "Fornavn", + "type": "textfield", + "key": "fornavnSoker", + "fieldSize": "input--xxl", + "input": true, + "dataGridLabel": true, + "autocomplete": "given-name", + "validateOn": "blur", + "validate": { + "required": true, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false, + "minLength": "", + "maxLength": "", + "pattern": "" + }, + "tableView": true, + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": { + "type": "input" + }, + "attributes": {}, + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "mask": false, + "inputType": "text", + "inputFormat": "plain", + "inputMask": "", + "displayMask": "", + "spellcheck": true, + "truncateMultipleSpaces": false, + "id": "en5n31q", + "navId": "erwhie" + }, + { + "label": "Etternavn", + "type": "textfield", + "key": "etternavnSoker", + "fieldSize": "input--xxl", + "input": true, + "dataGridLabel": true, + "autocomplete": "family-name", + "validateOn": "blur", + "validate": { + "required": true, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false, + "minLength": "", + "maxLength": "", + "pattern": "" + }, + "tableView": true, + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": { + "type": "input" + }, + "attributes": {}, + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "mask": false, + "inputType": "text", + "inputFormat": "plain", + "inputMask": "", + "displayMask": "", + "spellcheck": true, + "truncateMultipleSpaces": false, + "id": "eiktdbj", + "navId": "ekphted" + }, + { + "label": "Har du norsk fødselsnummer eller D-nummer?", + "key": "harDuNorskFodselsnummerEllerDNummer", + "type": "radiopanel", + "input": true, + "validateOn": "blur", + "tableView": false, + "values": [ + { + "value": "ja", + "label": "Ja" + }, + { + "value": "nei", + "label": "Nei" + } + ], + "validate": { + "required": true, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false, + "onlyAvailableItems": false + }, + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "dataGridLabel": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "attributes": {}, + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "inputType": "radio", + "fieldSet": false, + "id": "ehe5roa", + "navId": "en8775a" + }, + { + "label": "Fødselsnummer / D-nummer", + "key": "fodselsnummerDNummerSoker", + "type": "fnrfield", + "input": true, + "tableView": true, + "conditional": { + "show": true, + "when": "harDuNorskFodselsnummerEllerDNummer", + "eq": "ja" + }, + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "dataGridLabel": true, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": { + "type": "input" + }, + "attributes": {}, + "validateOn": "blur", + "validate": { + "required": true, + "custom": "valid = instance.validateFnrNew(input)", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false, + "minLength": "", + "maxLength": "", + "pattern": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "mask": false, + "inputType": "text", + "inputFormat": "plain", + "inputMask": "", + "displayMask": "", + "spellcheck": false, + "truncateMultipleSpaces": false, + "fieldSize": "input--s", + "id": "ecrpgnl", + "navId": "eof9yg9" + }, + { + "label": "Din fødselsdato (dd.mm.åååå)", + "visArvelger": true, + "mayBeEqual": false, + "key": "fodselsdatoDdMmAaaaSoker", + "type": "navDatepicker", + "dataGridLabel": true, + "input": true, + "tableView": false, + "validateOn": "blur", + "validate": { + "required": true, + "custom": "valid = instance.validateDatePickerV2(input, data, component, row);", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "conditional": { + "show": true, + "when": "harDuNorskFodselsnummerEllerDNummer", + "eq": "nei" + }, + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "attributes": {}, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "id": "ekzqc1", + "navId": "em1i92" + }, + { + "label": "Alertstripe", + "content": "NAV sender svar på søknad og annen kommunikasjon til din folkeregistrerte adresse. \n
\nDu kan sjekke og endre din folkeregistrerte adresse på skatteetatens nettsider (åpnes i et nytt vindu).\nHvis du ønsker å motta kommunikasjon fra NAV på en annen adresse enn din folkeregistrerte adresse, kan du bruke lenken ovenfor til å oppgi en postadresse i Folkeregisteret.\nDu finner også papirskjema for å endre postadresse på samme siden hos Skatteetaten.", + "key": "alertstripe", + "type": "alertstripe", + "alerttype": "info", + "input": true, + "tableView": false, + "conditional": { + "show": true, + "when": "harDuNorskFodselsnummerEllerDNummer", + "eq": "ja" + }, + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": false, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "dataGridLabel": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "attributes": {}, + "validateOn": "change", + "validate": { + "required": false, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "tag": "p", + "attrs": [], + "id": "evzlzs4", + "navId": "eqss9c" + }, + { + "label": "Bor du i Norge?", + "key": "borDuINorge", + "type": "radiopanel", + "input": true, + "tableView": false, + "validateOn": "blur", + "validate": { + "required": true, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false, + "onlyAvailableItems": false + }, + "values": [ + { + "value": "ja", + "label": "Ja" + }, + { + "value": "nei", + "label": "Nei" + } + ], + "conditional": { + "show": true, + "when": "harDuNorskFodselsnummerEllerDNummer", + "eq": "nei" + }, + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "dataGridLabel": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "attributes": {}, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "inputType": "radio", + "fieldSet": false, + "id": "efnk20o", + "navId": "e7mm4lo" + }, + { + "label": "Er kontaktadressen din en vegadresse eller postboksadresse?", + "key": "vegadresseEllerPostboksadresse", + "type": "radiopanel", + "input": true, + "validateOn": "blur", + "tableView": false, + "values": [ + { + "value": "vegadresse", + "label": "Vegadresse" + }, + { + "value": "postboksadresse", + "label": "Postboksadresse" + } + ], + "validate": { + "required": true, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false, + "onlyAvailableItems": false + }, + "conditional": { + "show": true, + "when": "borDuINorge", + "eq": "ja" + }, + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "dataGridLabel": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "attributes": {}, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "inputType": "radio", + "fieldSet": false, + "id": "egk2lfj", + "navId": "e8fhl6a" + }, + { + "legend": "Kontaktadresse", + "key": "navSkjemagruppeVegadresse", + "type": "navSkjemagruppe", + "label": "Kontaktadresse", + "input": false, + "tableView": false, + "conditional": { + "show": true, + "when": "vegadresseEllerPostboksadresse", + "eq": "vegadresse" + }, + "components": [ + { + "key": "norskVegadresse", + "type": "container", + "label": "Kontaktadresse", + "input": false, + "tableView": false, + "components": [ + { + "label": "C/O", + "type": "textfield", + "key": "coSoker", + "fieldSize": "input--xxl", + "autocomplete": false, + "input": true, + "dataGridLabel": true, + "tableView": true, + "validateOn": "blur", + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": { + "type": "input" + }, + "attributes": {}, + "validate": { + "required": false, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false, + "minLength": "", + "maxLength": "", + "pattern": "" + }, + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "mask": false, + "inputType": "text", + "inputFormat": "plain", + "inputMask": "", + "displayMask": "", + "spellcheck": true, + "truncateMultipleSpaces": false, + "id": "esgk2k9", + "navId": "eksfvqf" + }, + { + "label": "Vegadresse", + "type": "textfield", + "key": "vegadresseSoker", + "fieldSize": "input--xxl", + "autocomplete": "street-address", + "validate": { + "required": true, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false, + "minLength": "", + "maxLength": "", + "pattern": "" + }, + "input": true, + "dataGridLabel": true, + "tableView": true, + "validateOn": "blur", + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": { + "type": "input" + }, + "attributes": {}, + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "mask": false, + "inputType": "text", + "inputFormat": "plain", + "inputMask": "", + "displayMask": "", + "spellcheck": true, + "truncateMultipleSpaces": false, + "id": "e8ksmci", + "navId": "ercutpq" + }, + { + "label": "Postnummer", + "type": "textfield", + "key": "postnrSoker", + "autocomplete": "postal-code", + "spellcheck": false, + "fieldSize": "input--xs", + "validate": { + "required": true, + "minLength": 4, + "maxLength": 4, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false, + "pattern": "" + }, + "input": true, + "dataGridLabel": true, + "tableView": true, + "validateOn": "blur", + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": { + "type": "input" + }, + "attributes": {}, + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "mask": false, + "inputType": "text", + "inputFormat": "plain", + "inputMask": "", + "displayMask": "", + "truncateMultipleSpaces": false, + "id": "emh9m2u", + "navId": "ed0je47" + }, + { + "label": "Poststed", + "type": "textfield", + "key": "poststedSoker", + "autocomplete": "address-level2", + "fieldSize": "input--xxl", + "validate": { + "required": true, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false, + "minLength": "", + "maxLength": "", + "pattern": "" + }, + "input": true, + "dataGridLabel": true, + "tableView": true, + "validateOn": "blur", + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": { + "type": "input" + }, + "attributes": {}, + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "mask": false, + "inputType": "text", + "inputFormat": "plain", + "inputMask": "", + "displayMask": "", + "spellcheck": true, + "truncateMultipleSpaces": false, + "id": "ew5semh", + "navId": "ez0f32p" + } + ], + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "dataGridLabel": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": true, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "attributes": {}, + "validateOn": "change", + "validate": { + "required": false, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "tree": true, + "lazyLoad": false, + "id": "e20bclh", + "navId": "eckb53k" + }, + { + "label": "Fra hvilken dato skal denne adressen brukes (dd.mm.åååå)?", + "visArvelger": true, + "key": "gyldigFraDatoDdMmAaaa1", + "type": "navDatepicker", + "dataGridLabel": true, + "input": true, + "tableView": false, + "mayBeEqual": false, + "validateOn": "blur", + "validate": { + "required": true, + "custom": "valid = instance.validateDatePickerV2(input, data, component, row);", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "attributes": {}, + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "id": "ekzk6qe", + "navId": "eo24cic" + }, + { + "label": "Til hvilken dato skal denne adressen brukes (dd.mm.åååå)?", + "visArvelger": true, + "key": "gyldigTilDatoDdMmAaaa1", + "type": "navDatepicker", + "dataGridLabel": true, + "input": true, + "tableView": false, + "latestAllowedDate": 365, + "description": "Du velger selv hvor lenge adressen skal være gyldig, maksimalt 1 år. Etter 1 år må du endre eller forlenge adressen.", + "beforeDateInputKey": "gyldigFraDatoDdMmAaaa1", + "mayBeEqual": false, + "validateOn": "blur", + "validate": { + "custom": "valid = instance.validateDatePickerV2(input, data, component, row);", + "required": false, + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "labelPosition": "top", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "attributes": {}, + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "id": "ebf5ng8", + "navId": "e50nqto" + } + ], + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": false, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "dataGridLabel": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "attributes": {}, + "validateOn": "change", + "validate": { + "required": false, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "tree": false, + "lazyLoad": false, + "id": "eiw73x3", + "navId": "e6eq7be" + }, + { + "legend": "Kontaktadresse", + "key": "navSkjemagruppePostboksadresse", + "type": "navSkjemagruppe", + "label": "Kontaktadresse", + "input": false, + "tableView": false, + "conditional": { + "show": true, + "when": "vegadresseEllerPostboksadresse", + "eq": "postboksadresse" + }, + "components": [ + { + "key": "norskPostboksadresse", + "type": "container", + "label": "Postboksadresse", + "input": false, + "tableView": false, + "components": [ + { + "label": "C/O", + "type": "textfield", + "key": "coSoker", + "fieldSize": "input--xxl", + "autocomplete": false, + "input": true, + "dataGridLabel": true, + "tableView": true, + "validateOn": "blur", + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": { + "type": "input" + }, + "attributes": {}, + "validate": { + "required": false, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false, + "minLength": "", + "maxLength": "", + "pattern": "" + }, + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "mask": false, + "inputType": "text", + "inputFormat": "plain", + "inputMask": "", + "displayMask": "", + "spellcheck": true, + "truncateMultipleSpaces": false, + "id": "ebwpara", + "navId": "ey3ti6s" + }, + { + "label": "Postboks", + "type": "textfield", + "key": "postboksNrSoker", + "fieldSize": "input--s", + "validate": { + "required": true, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false, + "minLength": "", + "maxLength": "", + "pattern": "" + }, + "input": true, + "dataGridLabel": true, + "tableView": true, + "validateOn": "blur", + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": { + "type": "input" + }, + "attributes": {}, + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "mask": false, + "inputType": "text", + "inputFormat": "plain", + "inputMask": "", + "displayMask": "", + "spellcheck": true, + "truncateMultipleSpaces": false, + "id": "ekfuiop", + "navId": "em6q49d" + }, + { + "label": "Postnummer", + "type": "textfield", + "key": "postnrSoker", + "autocomplete": "postal-code", + "spellcheck": false, + "fieldSize": "input--xs", + "validate": { + "required": true, + "minLength": 4, + "maxLength": 4, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false, + "pattern": "" + }, + "input": true, + "dataGridLabel": true, + "tableView": true, + "validateOn": "blur", + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": { + "type": "input" + }, + "attributes": {}, + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "mask": false, + "inputType": "text", + "inputFormat": "plain", + "inputMask": "", + "displayMask": "", + "truncateMultipleSpaces": false, + "id": "erp0ck8", + "navId": "ece083" + }, + { + "label": "Poststed", + "type": "textfield", + "key": "poststedSoker", + "autocomplete": "address-level2", + "fieldSize": "input--xxl", + "validate": { + "required": true, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false, + "minLength": "", + "maxLength": "", + "pattern": "" + }, + "input": true, + "dataGridLabel": true, + "tableView": true, + "validateOn": "blur", + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": { + "type": "input" + }, + "attributes": {}, + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "mask": false, + "inputType": "text", + "inputFormat": "plain", + "inputMask": "", + "displayMask": "", + "spellcheck": true, + "truncateMultipleSpaces": false, + "id": "eluto5t", + "navId": "e91yhcc" + } + ], + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "dataGridLabel": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": true, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "attributes": {}, + "validateOn": "change", + "validate": { + "required": false, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "tree": true, + "lazyLoad": false, + "id": "e2eupn", + "navId": "ehz7mo" + }, + { + "label": "Fra hvilken dato skal denne adressen brukes (dd.mm.åååå)?", + "visArvelger": true, + "key": "gyldigFraDatoDdMmAaaa2", + "type": "navDatepicker", + "dataGridLabel": true, + "input": true, + "tableView": false, + "mayBeEqual": false, + "validateOn": "blur", + "validate": { + "required": true, + "custom": "valid = instance.validateDatePickerV2(input, data, component, row);", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "attributes": {}, + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "id": "e7twrz", + "navId": "eohi0rc" + }, + { + "label": "Til hvilken dato skal denne adressen brukes (dd.mm.åååå)?", + "visArvelger": true, + "description": "Du velger selv hvor lenge adressen skal være gyldig, maksimalt 1 år. Etter 1 år må du endre eller forlenge adressen.", + "beforeDateInputKey": "gyldigFraDatoDdMmAaaa2", + "mayBeEqual": false, + "validate": { + "custom": "valid = instance.validateDatePickerV2(input, data, component, row);", + "required": false, + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "validateOn": "blur", + "key": "gyldigTilDatoDdMmAaaa2", + "type": "navDatepicker", + "dataGridLabel": true, + "input": true, + "tableView": false, + "latestAllowedDate": 365, + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "labelPosition": "top", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "attributes": {}, + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "id": "eu58rt4", + "navId": "epgle8j" + } + ], + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": false, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "dataGridLabel": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "attributes": {}, + "validateOn": "change", + "validate": { + "required": false, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "tree": false, + "lazyLoad": false, + "id": "e6z1uz", + "navId": "ele0xqy" + }, + { + "legend": "Utenlandsk kontaktadresse", + "key": "navSkjemagruppeUtland", + "type": "navSkjemagruppe", + "label": "Utenlandsk kontaktadresse", + "input": false, + "tableView": false, + "conditional": { + "show": true, + "when": "borDuINorge", + "eq": "nei" + }, + "components": [ + { + "key": "utenlandskAdresse", + "type": "container", + "label": "Utenlandsk kontaktadresse", + "input": false, + "tableView": false, + "components": [ + { + "label": "C/O", + "type": "textfield", + "key": "coSoker", + "fieldSize": "input--xxl", + "autocomplete": false, + "input": true, + "dataGridLabel": true, + "tableView": true, + "validateOn": "blur", + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": { + "type": "input" + }, + "attributes": {}, + "validate": { + "required": false, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false, + "minLength": "", + "maxLength": "", + "pattern": "" + }, + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "mask": false, + "inputType": "text", + "inputFormat": "plain", + "inputMask": "", + "displayMask": "", + "spellcheck": true, + "truncateMultipleSpaces": false, + "id": "em31d1l", + "navId": "ec79x4t" + }, + { + "label": "Vegnavn og husnummer, evt. postboks", + "type": "textfield", + "key": "postboksNrSoker", + "autocomplete": "street-address", + "fieldSize": "input--xxl", + "validate": { + "required": true, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false, + "minLength": "", + "maxLength": "", + "pattern": "" + }, + "input": true, + "dataGridLabel": true, + "tableView": true, + "validateOn": "blur", + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": { + "type": "input" + }, + "attributes": {}, + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "mask": false, + "inputType": "text", + "inputFormat": "plain", + "inputMask": "", + "displayMask": "", + "spellcheck": true, + "truncateMultipleSpaces": false, + "id": "ew01jh6", + "navId": "eorxnxj" + }, + { + "label": "Bygning", + "type": "textfield", + "key": "bygningSoker", + "fieldSize": "input--xxl", + "input": true, + "dataGridLabel": true, + "tableView": true, + "validateOn": "blur", + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": { + "type": "input" + }, + "attributes": {}, + "validate": { + "required": false, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false, + "minLength": "", + "maxLength": "", + "pattern": "" + }, + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "mask": false, + "inputType": "text", + "inputFormat": "plain", + "inputMask": "", + "displayMask": "", + "spellcheck": true, + "truncateMultipleSpaces": false, + "id": "espqu5w", + "navId": "e9qi4nm" + }, + { + "label": "Postkode", + "type": "textfield", + "key": "postnrSoker", + "autocomplete": "postal-code", + "fieldSize": "input--s", + "input": true, + "dataGridLabel": true, + "tableView": true, + "validateOn": "blur", + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": { + "type": "input" + }, + "attributes": {}, + "validate": { + "required": false, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false, + "minLength": "", + "maxLength": "", + "pattern": "" + }, + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "mask": false, + "inputType": "text", + "inputFormat": "plain", + "inputMask": "", + "displayMask": "", + "spellcheck": true, + "truncateMultipleSpaces": false, + "id": "etw7d1", + "navId": "e9vko4r" + }, + { + "label": "By / stedsnavn", + "type": "textfield", + "key": "poststedSoker", + "autocomplete": "address-level2", + "fieldSize": "input--xxl", + "input": true, + "dataGridLabel": true, + "tableView": true, + "validateOn": "blur", + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": { + "type": "input" + }, + "attributes": {}, + "validate": { + "required": false, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false, + "minLength": "", + "maxLength": "", + "pattern": "" + }, + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "mask": false, + "inputType": "text", + "inputFormat": "plain", + "inputMask": "", + "displayMask": "", + "spellcheck": true, + "truncateMultipleSpaces": false, + "id": "ebsd4l6", + "navId": "eqrjlv" + }, + { + "label": "Region", + "type": "textfield", + "key": "regionSoker", + "autocomplete": "address-level1", + "fieldSize": "input--xxl", + "input": true, + "dataGridLabel": true, + "tableView": true, + "validateOn": "blur", + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": { + "type": "input" + }, + "attributes": {}, + "validate": { + "required": false, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false, + "minLength": "", + "maxLength": "", + "pattern": "" + }, + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "mask": false, + "inputType": "text", + "inputFormat": "plain", + "inputMask": "", + "displayMask": "", + "spellcheck": true, + "truncateMultipleSpaces": false, + "id": "ecjx5x", + "navId": "eqz43h" + }, + { + "label": "Land", + "labelPosition": "top", + "widget": "choicesjs", + "labelWidth": "", + "labelMargin": "", + "placeholder": "", + "description": "", + "tooltip": "", + "customClass": "", + "tabindex": "", + "hidden": false, + "hideLabel": false, + "uniqueOptions": false, + "autofocus": false, + "disabled": false, + "tableView": true, + "modalEdit": false, + "multiple": false, + "data": { + "resource": "", + "json": "", + "values": [ + { + "label": "", + "value": "" + } + ], + "custom": "", + "url": "http://localhost:3001/fyllut/api/countries?lang=nb" + }, + "valueProperty": "", + "template": "{{ item.label }}", + "searchEnabled": true, + "selectThreshold": 0.3, + "readOnlyValue": false, + "customOptions": {}, + "useExactSearch": false, + "persistent": true, + "protected": false, + "dbIndex": false, + "encrypted": false, + "redrawOn": "", + "clearOnHide": true, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "allowCalculateOverride": false, + "validateOn": "blur", + "validate": { + "required": true, + "customMessage": "", + "custom": "", + "customPrivate": false, + "json": "", + "strictDateValidation": false, + "multiple": false, + "unique": false, + "onlyAvailableItems": false + }, + "unique": false, + "errorLabel": "", + "errors": "", + "key": "landSoker", + "tags": [], + "properties": {}, + "conditional": { + "show": null, + "when": null, + "eq": "", + "json": "" + }, + "customConditional": "", + "logic": [], + "attributes": {}, + "overlay": { + "style": "", + "page": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "addons": [], + "type": "landvelger", + "selectFields": "", + "refreshOn": "", + "input": true, + "dataSrc": "url", + "disableLimit": true, + "prefix": "", + "suffix": "", + "dataGridLabel": false, + "showCharCount": false, + "showWordCount": false, + "allowMultipleMasks": false, + "idPath": "id", + "clearOnRefresh": false, + "limit": 100, + "lazyLoad": true, + "filter": "", + "searchField": "", + "minSearch": 0, + "authenticate": false, + "ignoreCache": false, + "fuseOptions": { + "include": "score", + "threshold": 0.3 + }, + "indexeddb": { + "filter": {} + }, + "id": "ebsc8rn", + "defaultValue": {}, + "refreshOnBlur": "", + "navId": "e8ttlvs" + } + ], + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "dataGridLabel": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": true, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "attributes": {}, + "validateOn": "change", + "validate": { + "required": false, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "tree": true, + "lazyLoad": false, + "id": "et81y4k", + "navId": "eikdcq" + }, + { + "label": "Fra hvilken dato skal denne adressen brukes (dd.mm.åååå)?", + "visArvelger": true, + "key": "gyldigFraDatoDdMmAaaa", + "type": "navDatepicker", + "dataGridLabel": true, + "input": true, + "tableView": false, + "mayBeEqual": false, + "validateOn": "blur", + "validate": { + "required": true, + "custom": "valid = instance.validateDatePickerV2(input, data, component, row);", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "attributes": {}, + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "id": "ec560kq", + "navId": "eww40ti" + }, + { + "label": "Til hvilken dato skal denne adressen brukes (dd.mm.åååå)?", + "visArvelger": true, + "key": "gyldigTilDatoDdMmAaaa", + "type": "navDatepicker", + "dataGridLabel": true, + "input": true, + "tableView": false, + "description": "Du velger selv hvor lenge adressen skal være gyldig, maksimalt 1 år. Etter 1 år må du endre eller forlenge adressen.", + "beforeDateInputKey": "gyldigFraDatoDdMmAaaa", + "mayBeEqual": false, + "validateOn": "blur", + "validate": { + "required": true, + "custom": "valid = instance.validateDatePickerV2(input, data, component, row);", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "labelPosition": "top", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "attributes": {}, + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "id": "eepte8h", + "navId": "er4025g" + } + ], + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": false, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "dataGridLabel": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "attributes": {}, + "validateOn": "change", + "validate": { + "required": false, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "tree": false, + "lazyLoad": false, + "id": "em84mrc", + "navId": "evg81d" + } + ], + "tableView": false, + "placeholder": "", + "prefix": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": false, + "clearOnHide": false, + "refreshOn": "", + "redrawOn": "", + "dataGridLabel": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "validateOn": "change", + "validate": { + "required": false, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "allowMultipleMasks": false, + "tree": false, + "lazyLoad": false, + "id": "ez96wea", + "navId": "ef6kf1n" + }, + { + "title": "Egenerklæring", + "labelWidth": "", + "labelMargin": "", + "theme": "default", + "breadcrumb": "default", + "breadcrumbClickable": true, + "buttonSettings": { + "previous": true, + "cancel": true, + "next": true + }, + "navigateOnEnter": false, + "saveOnEnter": false, + "scrollToTop": false, + "tooltip": "", + "customClass": "", + "collapsible": false, + "hidden": false, + "hideLabel": false, + "disabled": false, + "modalEdit": false, + "key": "egenerklaering", + "tags": [], + "properties": {}, + "customConditional": "", + "conditional": { + "json": "", + "show": null, + "when": null, + "eq": "" + }, + "nextPage": "", + "logic": [], + "attributes": {}, + "overlay": { + "style": "", + "page": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "addons": [], + "type": "panel", + "label": "Egenerklæring", + "tabindex": "", + "input": false, + "tableView": false, + "components": [ + { + "label": "Jeg plikter å gi de opplysninger og levere de dokumentene som er nødvendige for at NAV skal kunne vurdere mine rettigheter.", + "defaultValue": false, + "validate": { + "required": true, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "key": "jegPlikterAGiDeOpplysningerOgLevereDeDokumenteneSomErNodvendigeForAtNavSkalKunneVurdereMineRettigheter", + "type": "navCheckbox", + "input": true, + "validateOn": "blur", + "tableView": false, + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "dataGridLabel": true, + "labelPosition": "right", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "attributes": {}, + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "inputType": "checkbox", + "value": "", + "name": "", + "id": "ex0re9w", + "navId": "ejv3086" + }, + { + "label": "Jeg har gjort meg kjent med min plikt til å informere NAV om endringer som kan ha betydning for sykepengene jeg får utbetalt.", + "validate": { + "required": true, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "key": "jegHarGjortMegKjentMedMinPliktTilAInformereNavOmEndringerSomKanHaBetydningForSykepengeneJegFarUtbetalt", + "type": "navCheckbox", + "input": true, + "validateOn": "blur", + "tableView": false, + "defaultValue": false, + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "dataGridLabel": true, + "labelPosition": "right", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "attributes": {}, + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "inputType": "checkbox", + "value": "", + "name": "", + "id": "erbnye", + "navId": "eqstp" + } + ], + "placeholder": "", + "prefix": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": false, + "clearOnHide": false, + "refreshOn": "", + "redrawOn": "", + "dataGridLabel": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "validateOn": "change", + "validate": { + "required": false, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "allowMultipleMasks": false, + "tree": false, + "lazyLoad": false, + "id": "e25slwf", + "navId": "eec8ic" + }, + { + "title": "Sykefravær", + "labelWidth": "", + "labelMargin": "", + "theme": "default", + "tooltip": "", + "customClass": "", + "collapsible": false, + "hidden": false, + "hideLabel": false, + "disabled": false, + "modalEdit": false, + "key": "sykefravaer", + "tags": [], + "properties": {}, + "customConditional": "", + "conditional": { + "json": "", + "show": null, + "when": null, + "eq": "" + }, + "logic": [], + "attributes": {}, + "overlay": { + "style": "", + "page": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "addons": [], + "type": "panel", + "label": "Panel", + "breadcrumb": "default", + "tabindex": "", + "input": false, + "placeholder": "", + "prefix": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": false, + "clearOnHide": false, + "refreshOn": "", + "redrawOn": "", + "tableView": false, + "dataGridLabel": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "validateOn": "change", + "validate": { + "required": false, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "allowMultipleMasks": false, + "tree": false, + "lazyLoad": false, + "components": [ + { + "visArvelger": true, + "label": " Oppgi dato for første sykefraværsdag (dd.mm.åååå)", + "labelWidth": "", + "labelMargin": "", + "description": "", + "beforeDateInputKey": "", + "mayBeEqual": false, + "earliestAllowedDate": "", + "latestAllowedDate": "", + "validate": { + "required": true, + "customMessage": "", + "custom": "valid = instance.validateDatePickerV2(input, data, component, row);", + "customPrivate": false, + "json": "", + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "validateOn": "blur", + "errorLabel": "", + "errors": "", + "conditional": { + "show": null, + "when": null, + "eq": "", + "json": "" + }, + "customConditional": "", + "key": "oppgiDatoForForsteSykefravaersdagDdMmAaaa", + "tags": [], + "properties": {}, + "type": "navDatepicker", + "dataGridLabel": true, + "input": true, + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "tableView": false, + "modalEdit": false, + "labelPosition": "top", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "attributes": {}, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "allowMultipleMasks": false, + "addons": [], + "id": "e35ezlai", + "navId": "e25e1za" + } + ], + "id": "ec1vew", + "navId": "eplsa75" + }, + { + "title": "Type virksomhet", + "labelWidth": "", + "labelMargin": "", + "theme": "default", + "breadcrumb": "default", + "breadcrumbClickable": true, + "buttonSettings": { + "previous": true, + "cancel": true, + "next": true + }, + "navigateOnEnter": false, + "saveOnEnter": false, + "scrollToTop": false, + "tooltip": "", + "customClass": "", + "collapsible": false, + "hidden": false, + "hideLabel": false, + "disabled": false, + "modalEdit": false, + "key": "typeVirksomhet", + "tags": [], + "properties": {}, + "customConditional": "", + "conditional": { + "json": "", + "show": null, + "when": null, + "eq": "" + }, + "nextPage": "", + "logic": [], + "attributes": {}, + "overlay": { + "style": "", + "page": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "addons": [], + "type": "panel", + "label": "Type virksomhet", + "tabindex": "", + "input": false, + "tableView": false, + "components": [ + { + "label": "Hva slags virksomhet driver du?", + "values": [ + { + "label": "Selvstendig næringsdrivende", + "value": "selvstendigNaeringsdrivende", + "shortcut": "" + }, + { + "label": "Frilanser", + "value": "frilanser", + "shortcut": "" + } + ], + "validate": { + "required": true, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false, + "onlyAvailableItems": false + }, + "key": "hvaSlagsVirksomhetDriverDu", + "type": "selectboxes", + "fieldSize": "input--xxl", + "input": true, + "isNavCheckboxPanel": true, + "validateOn": "blur", + "tableView": false, + "inputType": "checkbox", + "defaultValue": { + "selvstendigNaeringsdrivende": false, + "frilanser": false + }, + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "dataGridLabel": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "attributes": {}, + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "fieldSet": false, + "inline": false, + "id": "ek10p2", + "navId": "e7pz8zn" + }, + { + "label": "Hva slags selvstendig næringsvirksomhet driver du?", + "description": "Du kan sette flere kryss", + "additionalDescription": false, + "defaultValue": { + "enkeltpersonforetak": false, + "fiskeBladA": false, + "fiskeBladB": false, + "fiskeLott": false, + "fiskeHyre": false, + "jordbrukSkogbruk": false, + "dagmammaIEgetHjem": false, + "frilanser": false, + "annenVirksomhet": false + }, + "values": [ + { + "label": "Enkeltpersonforetak", + "value": "enkeltpersonforetak", + "shortcut": "" + }, + { + "label": "Fiske, Blad A", + "value": "fiskeBladA", + "shortcut": "" + }, + { + "label": "Fiske, Blad B", + "value": "fiskeBladB", + "shortcut": "" + }, + { + "label": "Fiske, Lott", + "value": "fiskeLott", + "shortcut": "" + }, + { + "label": "Fiske, Hyre", + "value": "fiskeHyre", + "shortcut": "" + }, + { + "label": "Jordbruk/skogbruk/reindrift", + "value": "jordbrukSkogbruk", + "shortcut": "" + }, + { + "label": "Dagmamma i eget hjem", + "value": "dagmammaIEgetHjem", + "shortcut": "" + }, + { + "label": "Annen virksomhet", + "value": "annenVirksomhet", + "shortcut": "" + } + ], + "validate": { + "required": true, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false, + "onlyAvailableItems": false + }, + "key": "hvaSlagsSelvstendigNaeringsvirksomhetDriverDu", + "conditional": { + "show": true, + "when": "hvaSlagsVirksomhetDriverDu", + "eq": "selvstendigNaeringsdrivende" + }, + "type": "selectboxes", + "fieldSize": "input--xxl", + "input": true, + "isNavCheckboxPanel": true, + "validateOn": "blur", + "tableView": false, + "inputType": "checkbox", + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "dataGridLabel": false, + "labelPosition": "top", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "attributes": {}, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "fieldSet": false, + "inline": false, + "id": "esq9nph", + "navId": "eh9k26" + }, + { + "label": "Spesifiser annen virksomhet", + "fieldSize": "input--xxl", + "validateOn": "blur", + "validate": { + "required": true, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false, + "minLength": "", + "maxLength": "", + "pattern": "" + }, + "key": "spesifiserAnnenVirksomhet", + "conditional": { + "show": true, + "when": "hvaSlagsSelvstendigNaeringsvirksomhetDriverDu", + "eq": "annenVirksomhet" + }, + "type": "textfield", + "input": true, + "dataGridLabel": true, + "tableView": true, + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": { + "type": "input" + }, + "attributes": {}, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "mask": false, + "inputType": "text", + "inputFormat": "plain", + "inputMask": "", + "displayMask": "", + "spellcheck": true, + "truncateMultipleSpaces": false, + "id": "ezawp78", + "navId": "ewbbicj" + }, + { + "label": " Har du inntekter som arbeidstaker i tillegg til inntekt som selvstendig næringsdrivende og/eller frilanser?", + "values": [ + { + "value": "ja", + "label": "Ja", + "shortcut": "" + }, + { + "value": "nei", + "label": "Nei", + "shortcut": "" + } + ], + "validate": { + "required": true, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false, + "onlyAvailableItems": false + }, + "key": "harDuInntekterSomArbeidstakerITilleggTilInntektSomSelvstendigNaeringsdrivendeOgEllerFrilanser", + "type": "radiopanel", + "input": true, + "validateOn": "blur", + "tableView": false, + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "dataGridLabel": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "attributes": {}, + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "inputType": "radio", + "fieldSet": false, + "id": "emt4lmg", + "navId": "exetvmp" + } + ], + "placeholder": "", + "prefix": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": false, + "clearOnHide": false, + "refreshOn": "", + "redrawOn": "", + "dataGridLabel": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "validateOn": "change", + "validate": { + "required": false, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "allowMultipleMasks": false, + "tree": false, + "lazyLoad": false, + "id": "ebsgl1s", + "navId": "ertwrbk" + }, + { + "title": "Opplysninger om den selvstendige virksomheten", + "labelWidth": "", + "labelMargin": "", + "theme": "default", + "tooltip": "", + "customClass": "", + "collapsible": false, + "hidden": false, + "hideLabel": false, + "disabled": false, + "modalEdit": false, + "key": "opplysningerOmDenSelvstendigeVirksomheten", + "tags": [], + "properties": {}, + "customConditional": "", + "conditional": { + "json": "", + "show": true, + "when": "hvaSlagsVirksomhetDriverDu", + "eq": "selvstendigNaeringsdrivende" + }, + "logic": [], + "attributes": {}, + "overlay": { + "style": "", + "page": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "addons": [], + "type": "panel", + "label": "Opplysninger om den selvstendige virksomheten", + "breadcrumb": "default", + "buttonSettings": { + "previous": true, + "cancel": true, + "next": true + }, + "tabindex": "", + "breadcrumbClickable": true, + "navigateOnEnter": false, + "saveOnEnter": false, + "scrollToTop": false, + "input": false, + "tableView": false, + "components": [ + { + "label": "HTML", + "labelWidth": "", + "labelMargin": "", + "tag": "p", + "className": "", + "attrs": [ + { + "attr": "", + "value": "" + } + ], + "content": "Fylles ut av den selvstendig næringsdrivende.", + "refreshOnChange": false, + "customClass": "", + "hidden": false, + "modalEdit": false, + "contentForPdf": "", + "key": "html1", + "tags": [], + "properties": {}, + "conditional": { + "show": null, + "when": null, + "eq": "", + "json": "" + }, + "customConditional": "", + "logic": [], + "attributes": {}, + "overlay": { + "style": "", + "page": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "addons": [], + "type": "htmlelement", + "input": false, + "tableView": false, + "placeholder": "", + "prefix": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "dataGridLabel": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "validateOn": "change", + "validate": { + "required": false, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "allowMultipleMasks": false, + "id": "escy8z1", + "navId": "ezczsr", + "fieldSize": "input--xxl" + }, + { + "visArvelger": true, + "label": "Når startet du virksomheten din? (dd.mm.åååå)", + "mayBeEqual": false, + "validate": { + "required": true, + "custom": "valid = instance.validateDatePickerV2(input, data, component, row);", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "validateOn": "blur", + "key": "narStartetDuVirksomhetenDinDdMmAaaa", + "type": "navDatepicker", + "dataGridLabel": true, + "input": true, + "tableView": false, + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "attributes": {}, + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "id": "enld0ah", + "navId": "e13qajj", + "fieldSize": "input--xxl" + }, + { + "label": "Virksomhetens organisasjonsnummer", + "labelPosition": "top", + "labelWidth": "", + "labelMargin": "", + "description": "", + "descriptionPosition": "", + "additionalDescription": false, + "validate": { + "required": false, + "custom": "valid = instance.validateOrganizationNumber(input)", + "customMessage": "Organisasjonsnummeret må inneholde 9 siffer", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false, + "min": "", + "max": "", + "step": "any", + "integer": "" + }, + "key": "orgNr", + "tags": [], + "properties": {}, + "conditional": { + "show": null, + "when": null, + "eq": "", + "json": "" + }, + "customConditional": "", + "type": "orgNr", + "fieldSize": "input--s", + "input": true, + "spellcheck": false, + "dataGridLabel": true, + "validateOn": "blur", + "delimiter": true, + "truncateMultipleSpaces": false, + "requireDecimal": false, + "maxLength": 9, + "tableView": false, + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": { + "type": "input" + }, + "attributes": {}, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "allowMultipleMasks": false, + "addons": [], + "id": "emvaak", + "displayMask": "999 999 999", + "inputMaskPlaceholderChar": " ", + "navId": "e0c8t7b" + }, + { + "label": "Hva har du hatt i næringsresultat før skatt de siste 12 månedene?", + "labelPosition": "top", + "labelWidth": "", + "labelMargin": "", + "placeholder": "", + "description": "Hvis virksomheten har vart i kortere tid enn 12 måneder skal du bruke denne perioden og regne om til årsinntekt. Oppgi beløpet i hele kroner.", + "tooltip": " {\r\n 'label': 'Text Field',\r\n 'tooltip': 'This is a tooltip',\r\n 'tableView': true,\r\n 'key': 'textField',\r\n 'type': 'textfield',\r\n 'input': true\r\n }\r\n", + "prefix": "", + "suffix": "", + "widget": { + "type": "input" + }, + "displayMask": "", + "customClass": "", + "tabindex": "", + "autocomplete": "", + "hidden": false, + "hideLabel": false, + "mask": false, + "autofocus": false, + "spellcheck": false, + "disabled": false, + "tableView": false, + "modalEdit": false, + "multiple": false, + "persistent": true, + "currency": "nok", + "inputFormat": "plain", + "protected": false, + "dbIndex": false, + "case": "", + "truncateMultipleSpaces": false, + "encrypted": false, + "redrawOn": "", + "clearOnHide": true, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "allowCalculateOverride": false, + "validateOn": "blur", + "validate": { + "required": true, + "customMessage": "", + "custom": "", + "customPrivate": false, + "json": "", + "strictDateValidation": false, + "multiple": false, + "unique": false, + "min": "", + "max": "", + "step": "any", + "integer": "" + }, + "unique": false, + "errorLabel": "", + "errors": "", + "key": "hvaHarDuHattINaeringsresultatForSkattDeSiste12Manedene", + "tags": [], + "properties": {}, + "conditional": { + "show": null, + "when": null, + "eq": "", + "json": "" + }, + "customConditional": "", + "logic": [], + "attributes": {}, + "overlay": { + "style": "", + "page": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "addons": [], + "type": "currency", + "fieldSize": "input--s", + "input": true, + "dataGridLabel": true, + "delimiter": true, + "refreshOn": "", + "showCharCount": false, + "showWordCount": false, + "allowMultipleMasks": false, + "id": "ekunypm", + "defaultValue": "", + "navId": "eb2mekw" + }, + { + "labelWidth": "", + "labelMargin": "", + "content": "Næringsresultat er inntekt du har i næringen din, minus utgifter og avskrivninger.", + "alerttype": "info", + "isInline": false, + "contentForPdf": "", + "key": "alertstripe1", + "conditional": { + "show": null, + "when": null, + "eq": "", + "json": "" + }, + "customConditional": "", + "addons": [], + "type": "alertstripe", + "label": "Alertstripe", + "input": true, + "clearOnHide": true, + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": false, + "hidden": false, + "refreshOn": "", + "redrawOn": "", + "tableView": false, + "modalEdit": false, + "dataGridLabel": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "attributes": {}, + "validateOn": "change", + "validate": { + "required": false, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "tag": "p", + "attrs": [], + "id": "ej4k6ba", + "navId": "en1ktx" + }, + { + "label": " Har det vært drift i virksomheten frem til du ble sykmeldt?", + "values": [ + { + "value": "ja", + "label": "Ja", + "shortcut": "" + }, + { + "value": "nei", + "label": "Nei", + "shortcut": "" + } + ], + "validate": { + "required": true, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false, + "onlyAvailableItems": false + }, + "key": "harDetVaertDriftIVirksomhetenFremTilDuBleSykmeldt", + "type": "radiopanel", + "input": true, + "validateOn": "blur", + "tableView": false, + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "dataGridLabel": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "attributes": {}, + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "inputType": "radio", + "fieldSet": false, + "id": "ee16mu", + "navId": "e3owy7", + "fieldSize": "input--xxl", + "dataSrc": "values" + }, + { + "visArvelger": true, + "label": "Dato for når driften opphørte (dd.mm.åååå)", + "mayBeEqual": false, + "validate": { + "required": true, + "custom": "valid = instance.validateDatePickerV2(input, data, component, row);", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "validateOn": "blur", + "conditional": { + "show": true, + "when": "harDetVaertDriftIVirksomhetenFremTilDuBleSykmeldt", + "eq": "nei" + }, + "key": "datoForNarDriftenOpphorteDdMmAaaa", + "type": "navDatepicker", + "dataGridLabel": true, + "input": true, + "tableView": false, + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "attributes": {}, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "id": "e1wowvk", + "navId": "ek216ih", + "fieldSize": "input--xxl" + }, + { + "label": " Vil du fortsatt ha næringsinntekt mens du er sykmeldt?", + "values": [ + { + "value": "ja", + "label": "Ja", + "shortcut": "" + }, + { + "value": "nei", + "label": "Nei", + "shortcut": "" + } + ], + "validate": { + "required": true, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false, + "onlyAvailableItems": false + }, + "key": "vilDuFortsattHaNaeringsinntektMensDuErSykmeldt", + "type": "radiopanel", + "input": true, + "validateOn": "blur", + "tableView": false, + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "dataGridLabel": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "attributes": {}, + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "inputType": "radio", + "fieldSet": false, + "id": "epwr7jp", + "navId": "e0v5ii", + "fieldSize": "input--xxl", + "dataSrc": "values" + }, + { + "label": "Oppgi antatt overskudd i næring", + "labelPosition": "top", + "labelWidth": "", + "labelMargin": "", + "placeholder": "", + "description": "", + "tooltip": "", + "prefix": "", + "suffix": "per måned", + "widget": { + "type": "input" + }, + "displayMask": "", + "customClass": "", + "tabindex": "", + "autocomplete": "", + "hidden": false, + "hideLabel": false, + "mask": false, + "autofocus": false, + "spellcheck": false, + "disabled": false, + "tableView": false, + "modalEdit": false, + "multiple": false, + "persistent": true, + "currency": "nok", + "inputFormat": "plain", + "protected": false, + "dbIndex": false, + "case": "", + "truncateMultipleSpaces": false, + "encrypted": false, + "redrawOn": "", + "clearOnHide": true, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "allowCalculateOverride": false, + "validateOn": "blur", + "validate": { + "required": true, + "customMessage": "", + "custom": "", + "customPrivate": false, + "json": "", + "strictDateValidation": false, + "multiple": false, + "unique": false, + "min": "", + "max": "", + "step": "any", + "integer": "" + }, + "unique": false, + "errorLabel": "", + "errors": "", + "key": "oppgiAntattNaeringsinntekt", + "tags": [], + "properties": {}, + "conditional": { + "show": true, + "when": "vilDuFortsattHaNaeringsinntektMensDuErSykmeldt", + "eq": "ja", + "json": "" + }, + "customConditional": "", + "logic": [], + "attributes": {}, + "overlay": { + "style": "", + "page": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "addons": [], + "type": "currency", + "fieldSize": "input--s", + "input": true, + "dataGridLabel": true, + "delimiter": true, + "refreshOn": "", + "showCharCount": false, + "showWordCount": false, + "allowMultipleMasks": false, + "id": "eap4jb", + "defaultValue": "", + "navId": "ej2g4m9" + }, + { + "label": "Er virksomheten registrert i Norge?", + "labelWidth": "", + "labelMargin": "", + "description": "", + "descriptionPosition": "", + "additionalDescription": false, + "values": [ + { + "value": "ja", + "label": "Ja", + "shortcut": "" + }, + { + "value": "nei", + "label": "Nei", + "shortcut": "" + } + ], + "clearOnHide": true, + "customDefaultValue": "", + "calculateValue": "", + "validate": { + "required": true, + "onlyAvailableItems": false, + "customMessage": "", + "custom": "", + "customPrivate": false, + "json": "", + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "errorLabel": "", + "errors": "", + "key": "erVirksomhetenRegistrertINorge", + "tags": [], + "properties": {}, + "conditional": { + "show": null, + "when": null, + "eq": "", + "json": "" + }, + "customConditional": "", + "addons": [], + "type": "radiopanel", + "input": true, + "hideLabel": false, + "dataGridLabel": true, + "validateOn": "blur", + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "refreshOn": "", + "redrawOn": "", + "tableView": false, + "modalEdit": false, + "labelPosition": "top", + "tooltip": "", + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "calculateServer": false, + "widget": null, + "attributes": {}, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "allowMultipleMasks": false, + "inputType": "radio", + "fieldSet": false, + "id": "eifcl8m", + "defaultValue": "", + "navId": "e3sjh2f", + "fieldSize": "input--xxl", + "dataSrc": "values" + }, + { + "label": "Hvilket annet land er virksomheten registrert i?", + "widget": "choicesjs", + "uniqueOptions": false, + "tableView": true, + "data": { + "values": [ + { + "label": "", + "value": "" + } + ], + "url": "http://localhost:3001/fyllut/api/countries?lang=nb" + }, + "template": "{{ item.label }}", + "searchEnabled": true, + "selectThreshold": 0.3, + "readOnlyValue": false, + "customOptions": {}, + "useExactSearch": false, + "validate": { + "onlyAvailableItems": false, + "required": true, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "key": "landvelger", + "conditional": { + "show": true, + "when": "erVirksomhetenRegistrertINorge", + "eq": "nei" + }, + "type": "landvelger", + "input": true, + "idPath": "id", + "clearOnRefresh": false, + "limit": 100, + "lazyLoad": true, + "minSearch": 0, + "authenticate": false, + "ignoreCache": false, + "fuseOptions": { + "include": "score", + "threshold": 0.3 + }, + "indexeddb": { + "filter": {} + }, + "navId": "estvcqd", + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "dataGridLabel": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "attributes": {}, + "validateOn": "blur", + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "fieldSize": "input--xxl", + "dataSrc": "url", + "disableLimit": true, + "id": "es2q5cf", + "keyModified": true + } + ], + "placeholder": "", + "prefix": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": false, + "clearOnHide": false, + "refreshOn": "", + "redrawOn": "", + "dataGridLabel": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "validateOn": "change", + "validate": { + "required": false, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "allowMultipleMasks": false, + "tree": false, + "lazyLoad": false, + "id": "elshka6", + "navId": "eeievm8" + }, + { + "title": "Tilleggsopplysninger for selvstendig næringsdrivende", + "labelWidth": "", + "labelMargin": "", + "theme": "default", + "breadcrumb": "default", + "breadcrumbClickable": true, + "buttonSettings": { + "previous": true, + "cancel": true, + "next": true + }, + "navigateOnEnter": false, + "saveOnEnter": false, + "scrollToTop": false, + "tooltip": "", + "customClass": "", + "collapsible": false, + "hidden": false, + "hideLabel": false, + "disabled": false, + "modalEdit": false, + "key": "tilleggsopplysningerForSelvstendigNaeringsdrivende", + "tags": [], + "properties": {}, + "customConditional": "", + "conditional": { + "json": "", + "show": true, + "when": "hvaSlagsVirksomhetDriverDu", + "eq": "selvstendigNaeringsdrivende" + }, + "nextPage": "", + "logic": [], + "attributes": {}, + "overlay": { + "style": "", + "page": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "addons": [], + "type": "panel", + "label": "Tilleggsopplysninger for selvstendig næringsdrivende", + "tabindex": "", + "input": false, + "tableView": false, + "components": [ + { + "label": "Har du fått en varig endring av arbeidssituasjonen/virksomheten i løpet av de siste fire årene?", + "values": [ + { + "value": "ja", + "label": "Ja", + "shortcut": "" + }, + { + "value": "nei", + "label": "Nei", + "shortcut": "" + } + ], + "validate": { + "required": true, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false, + "onlyAvailableItems": false + }, + "key": "harDuFattEnVarigEndringAvArbeidssituasjonenVirksomhetenILopetAvDeSisteFireArene", + "type": "radiopanel", + "input": true, + "validateOn": "blur", + "tableView": false, + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "dataGridLabel": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "attributes": {}, + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "inputType": "radio", + "fieldSet": false, + "id": "efsymai", + "navId": "e08xd6t", + "fieldSize": "input--xxl", + "dataSrc": "values" + }, + { + "label": "Beskriv endringen her", + "validateOn": "blur", + "validate": { + "required": true, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false, + "minLength": "", + "maxLength": "", + "pattern": "", + "minWords": "", + "maxWords": "" + }, + "key": "beskrivEndringen", + "conditional": { + "show": true, + "when": "harDuFattEnVarigEndringAvArbeidssituasjonenVirksomhetenILopetAvDeSisteFireArene", + "eq": "ja" + }, + "type": "textarea", + "fieldSize": "input--xxl", + "input": true, + "dataGridLabel": true, + "autoExpand": true, + "tableView": true, + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": { + "type": "input" + }, + "attributes": {}, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "mask": false, + "inputType": "text", + "inputFormat": "html", + "inputMask": "", + "displayMask": "", + "spellcheck": true, + "truncateMultipleSpaces": false, + "rows": 3, + "wysiwyg": false, + "editor": "", + "fixedSize": true, + "id": "eq4q8c", + "navId": "ed79pmm" + }, + { + "label": "Inntekt etter endringen", + "suffix": "per år", + "mask": false, + "spellcheck": false, + "tableView": false, + "currency": "nok", + "inputFormat": "plain", + "truncateMultipleSpaces": false, + "validateOn": "blur", + "validate": { + "required": true, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false, + "min": "", + "max": "", + "step": "any", + "integer": "" + }, + "key": "inntektEtterEndringen", + "conditional": { + "show": true, + "when": "harDuFattEnVarigEndringAvArbeidssituasjonenVirksomhetenILopetAvDeSisteFireArene", + "eq": "ja" + }, + "type": "currency", + "fieldSize": "input--s", + "input": true, + "dataGridLabel": true, + "delimiter": true, + "placeholder": "", + "prefix": "", + "customClass": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": { + "type": "input" + }, + "attributes": {}, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "id": "e1f0d78", + "navId": "eefzxvc" + } + ], + "placeholder": "", + "prefix": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": false, + "clearOnHide": false, + "refreshOn": "", + "redrawOn": "", + "dataGridLabel": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "validateOn": "change", + "validate": { + "required": false, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "allowMultipleMasks": false, + "tree": false, + "lazyLoad": false, + "id": "ee6j5yp", + "navId": "ecf421" + }, + { + "title": "Tilleggsopplysninger for frilanser", + "labelWidth": "", + "labelMargin": "", + "theme": "default", + "tooltip": "", + "customClass": "", + "collapsible": false, + "hidden": false, + "hideLabel": false, + "disabled": false, + "modalEdit": false, + "key": "tilleggsopplysningerForFrilanser", + "tags": [], + "properties": {}, + "customConditional": "", + "conditional": { + "json": "", + "show": true, + "when": "hvaSlagsVirksomhetDriverDu", + "eq": "frilanser" + }, + "logic": [], + "attributes": {}, + "overlay": { + "style": "", + "page": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "addons": [], + "type": "panel", + "label": "Tilleggsopplysninger for frilanser", + "breadcrumb": "default", + "tabindex": "", + "input": false, + "tableView": false, + "components": [ + { + "visArvelger": true, + "label": "Når startet du som frilanser? dato (dd.mm.åååå)", + "mayBeEqual": false, + "validate": { + "required": true, + "custom": "valid = instance.validateDatePickerV2(input, data, component, row);", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "validateOn": "blur", + "key": "narStartetDuSomFrilanserDdMmAaaa", + "type": "navDatepicker", + "dataGridLabel": true, + "input": true, + "tableView": false, + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "attributes": {}, + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "id": "emjvuaq", + "navId": "ep557gk" + }, + { + "label": "Har du inntekt fra fosterhjem?", + "values": [ + { + "value": "ja", + "label": "Ja", + "shortcut": "" + }, + { + "value": "nei", + "label": "Nei", + "shortcut": "" + } + ], + "validate": { + "required": true, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false, + "onlyAvailableItems": false + }, + "key": "harDuInntektFraFosterhjem", + "type": "radiopanel", + "input": true, + "validateOn": "blur", + "tableView": false, + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "dataGridLabel": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "attributes": {}, + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "inputType": "radio", + "fieldSet": false, + "id": "eoz55q", + "navId": "en3opa" + } + ], + "placeholder": "", + "prefix": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": false, + "clearOnHide": false, + "refreshOn": "", + "redrawOn": "", + "dataGridLabel": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "validateOn": "change", + "validate": { + "required": false, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "allowMultipleMasks": false, + "tree": false, + "lazyLoad": false, + "id": "et5jjye", + "navId": "e1h0q8" + }, + { + "title": "Andre opplysninger", + "labelWidth": "", + "labelMargin": "", + "theme": "default", + "tooltip": "", + "customClass": "", + "collapsible": false, + "hidden": false, + "hideLabel": false, + "disabled": false, + "modalEdit": false, + "key": "andreOpplysninger", + "tags": [], + "properties": {}, + "customConditional": "", + "conditional": { + "json": "", + "show": null, + "when": null, + "eq": "" + }, + "logic": [], + "attributes": {}, + "overlay": { + "style": "", + "page": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "addons": [], + "type": "panel", + "label": "Panel", + "breadcrumb": "default", + "tabindex": "", + "input": false, + "placeholder": "", + "prefix": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": false, + "clearOnHide": false, + "refreshOn": "", + "redrawOn": "", + "tableView": false, + "dataGridLabel": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "validateOn": "change", + "validate": { + "required": false, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "allowMultipleMasks": false, + "tree": false, + "lazyLoad": false, + "components": [ + { + "label": "Har du andre opplysninger du mener er viktige når NAV skal fastsette sykepengegrunnlaget ditt?", + "descriptionPosition": "", + "labelWidth": "", + "labelMargin": "", + "description": "", + "values": [ + { + "value": "ja", + "label": "Ja", + "shortcut": "" + }, + { + "value": "nei", + "label": "Nei", + "shortcut": "" + } + ], + "clearOnHide": true, + "customDefaultValue": "", + "calculateValue": "", + "validate": { + "required": true, + "onlyAvailableItems": false, + "customMessage": "", + "custom": "", + "customPrivate": false, + "json": "", + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "errorLabel": "", + "errors": "", + "key": "andreOpplysningerDuMenerErViktigeNarNavSkalFastsetteSykepengegrunnlagetDitt", + "tags": [], + "properties": {}, + "conditional": { + "show": null, + "when": null, + "eq": "", + "json": "" + }, + "customConditional": "", + "addons": [], + "type": "radiopanel", + "input": true, + "validateOn": "blur", + "tableView": false, + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "dataGridLabel": false, + "labelPosition": "top", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "calculateServer": false, + "widget": null, + "attributes": {}, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "allowMultipleMasks": false, + "inputType": "radio", + "fieldSet": false, + "id": "enrw1f4", + "defaultValue": "", + "navId": "ek5p8hg" + }, + { + "label": "Andre viktige opplysninger", + "descriptionPosition": "", + "labelWidth": "", + "labelMargin": "", + "description": "", + "prefix": "", + "suffix": "", + "widget": { + "type": "input" + }, + "displayMask": "", + "autocomplete": "", + "showWordCount": false, + "showCharCount": false, + "spellcheck": true, + "disabled": false, + "truncateMultipleSpaces": false, + "clearOnHide": true, + "customDefaultValue": "", + "calculateValue": "", + "validateOn": "blur", + "validate": { + "required": true, + "minLength": "", + "maxLength": "", + "minWords": "", + "maxWords": "", + "pattern": "", + "customMessage": "", + "custom": "", + "customPrivate": false, + "json": "", + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "errorLabel": "", + "errors": "", + "key": "andreViktigeOpplysninger", + "tags": [], + "properties": {}, + "conditional": { + "show": true, + "when": "andreOpplysningerDuMenerErViktigeNarNavSkalFastsetteSykepengegrunnlagetDitt", + "eq": "ja", + "json": "" + }, + "customConditional": "", + "addons": [], + "type": "textarea", + "wysiwyg": false, + "fieldSize": "input--xxl", + "input": true, + "dataGridLabel": true, + "autoExpand": true, + "tableView": true, + "placeholder": "", + "customClass": "", + "multiple": false, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "labelPosition": "top", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "autofocus": false, + "dbIndex": false, + "calculateServer": false, + "attributes": {}, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "allowMultipleMasks": false, + "mask": false, + "inputType": "text", + "inputFormat": "html", + "inputMask": "", + "rows": 3, + "editor": "", + "fixedSize": true, + "id": "ehulir", + "defaultValue": "", + "navId": "ey89by" + }, + { + "label": "Har du dokumentasjon du ønsker å legge ved søknaden?", + "labelWidth": "", + "labelMargin": "", + "description": "", + "descriptionPosition": "", + "additionalDescription": false, + "values": [ + { + "value": "ja", + "label": "Ja", + "shortcut": "" + }, + { + "value": "nei", + "label": "Nei", + "shortcut": "" + } + ], + "clearOnHide": true, + "customDefaultValue": "", + "calculateValue": "", + "validate": { + "required": true, + "onlyAvailableItems": false, + "customMessage": "", + "custom": "", + "customPrivate": false, + "json": "", + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "errorLabel": "", + "errors": "", + "key": "harDuDokumentasjonDuOnskerALeggeVedSoknaden", + "tags": [], + "properties": {}, + "conditional": { + "show": null, + "when": null, + "eq": "", + "json": "" + }, + "customConditional": "", + "addons": [], + "type": "radiopanel", + "input": true, + "dataGridLabel": true, + "validateOn": "blur", + "tableView": false, + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "labelPosition": "top", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "calculateServer": false, + "widget": null, + "attributes": {}, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "allowMultipleMasks": false, + "inputType": "radio", + "fieldSet": false, + "id": "ey1s7aq", + "defaultValue": null, + "navId": "epcbuga" + }, + { + "label": "Hva ønsker du å legge ved?", + "labelWidth": "", + "labelMargin": "", + "description": "", + "descriptionPosition": "", + "additionalDescription": false, + "defaultValue": { + "personinntektsskjema": false, + "resultatregnskap": false, + "naeringsoppgave": false, + "annet": false + }, + "values": [ + { + "label": "Personinntektsskjema", + "value": "personinntektsskjema", + "shortcut": "" + }, + { + "label": "Resultatregnskap", + "value": "resultatregnskap", + "shortcut": "" + }, + { + "label": "Næringsoppgave", + "value": "naeringsoppgave", + "shortcut": "" + }, + { + "label": "Annet", + "value": "annet", + "shortcut": "" + } + ], + "clearOnHide": true, + "customDefaultValue": "", + "calculateValue": "", + "validate": { + "required": true, + "onlyAvailableItems": false, + "customMessage": "", + "minSelectedCount": "", + "maxSelectedCount": "", + "custom": "", + "customPrivate": false, + "json": "", + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "errorLabel": "", + "minSelectedCountMessage": "", + "maxSelectedCountMessage": "", + "errors": "", + "key": "hvaOnskerDuALeggeVed", + "tags": [], + "properties": {}, + "conditional": { + "show": null, + "when": null, + "eq": "", + "json": "" + }, + "customConditional": "show=\r\n(data.harDuDokumentasjonDuOnskerALeggeVedSoknaden === \"ja\") &&\r\n(data.hvaSlagsVirksomhetDriverDu.selvstendigNaeringsdrivende === true);", + "addons": [], + "type": "selectboxes", + "fieldSize": "input--xxl", + "input": true, + "isNavCheckboxPanel": true, + "dataGridLabel": true, + "validateOn": "blur", + "tableView": false, + "inputType": "checkbox", + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "labelPosition": "top", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "calculateServer": false, + "widget": null, + "attributes": {}, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "allowMultipleMasks": false, + "fieldSet": false, + "inline": false, + "id": "eu6gi2r", + "navId": "ergiyhi" + } + ], + "id": "er4w91r", + "navId": "ek24frh" + }, + { + "title": "Vedlegg", + "labelWidth": "", + "labelMargin": "", + "theme": "default", + "tooltip": "", + "customClass": "", + "collapsible": false, + "hidden": false, + "hideLabel": false, + "disabled": false, + "modalEdit": false, + "key": "vedlegg", + "isAttachmentPanel": true, + "tags": [], + "properties": {}, + "customConditional": "show= (data.harDuDokumentasjonDuOnskerALeggeVedSoknaden === \"ja\") || \n((data.hvaSlagsVirksomhetDriverDu.frilanser === true) && \n(data.hvaSlagsVirksomhetDriverDu.selvstendigNaeringsdrivende === false)) ||\n((data.hvaSlagsVirksomhetDriverDu.selvstendigNaeringsdrivende === true) && \n(data.hvaOnskerDuALeggeVed.annet === true));\n", + "conditional": { + "json": "", + "show": true, + "when": "harDuDokumentasjonDuOnskerALeggeVedSoknaden", + "eq": "ja" + }, + "logic": [], + "attributes": {}, + "overlay": { + "style": "", + "page": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "type": "panel", + "label": "Vedlegg", + "breadcrumb": "default", + "breadcrumbClickable": true, + "buttonSettings": { + "previous": true, + "cancel": true, + "next": true + }, + "navigateOnEnter": false, + "saveOnEnter": false, + "scrollToTop": false, + "tabindex": "", + "input": false, + "components": [ + { + "label": "Personinntektsskjema", + "additionalDescription": false, + "values": [ + { + "value": "leggerVedNaa", + "label": "Jeg legger det ved denne søknaden (anbefalt)", + "shortcut": "" + }, + { + "value": "ettersender", + "label": "Jeg ettersender dokumentasjonen senere (jeg er klar over at NAV ikke kan behandle søknaden før jeg har levert dokumentasjonen)", + "shortcut": "" + }, + { + "value": "levertTidligere", + "label": "Jeg har levert denne dokumentasjonen tidligere", + "shortcut": "" + } + ], + "validate": { + "required": true, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false, + "onlyAvailableItems": false + }, + "key": "personinntektsskjema1", + "properties": { + "vedleggstittel": "Personinntektsskjema", + "vedleggskode": "L2" + }, + "customConditional": "show=\r\n(data.hvaOnskerDuALeggeVed.personinntektsskjema === true);", + "type": "radiopanel", + "input": true, + "validateOn": "blur", + "tableView": false, + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "dataGridLabel": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "attributes": {}, + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "allowMultipleMasks": false, + "addons": [], + "inputType": "radio", + "fieldSet": false, + "id": "eo70inu", + "navId": "eiaivlp" + }, + { + "label": "Resultatregnskap", + "additionalDescription": false, + "values": [ + { + "value": "leggerVedNaa", + "label": "Jeg legger det ved denne søknaden (anbefalt)", + "shortcut": "" + }, + { + "value": "ettersender", + "label": "Jeg ettersender dokumentasjonen senere (jeg er klar over at NAV ikke kan behandle søknaden før jeg har levert dokumentasjonen)", + "shortcut": "" + }, + { + "value": "levertTidligere", + "label": "Jeg har levert denne dokumentasjonen tidligere", + "shortcut": "" + } + ], + "validate": { + "required": true, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false, + "onlyAvailableItems": false + }, + "key": "resultatregnskap1", + "properties": { + "vedleggstittel": "Resultatregnskap", + "vedleggskode": "L2" + }, + "customConditional": "show=\r\n(data.hvaOnskerDuALeggeVed.resultatregnskap === true);\r\n", + "type": "radiopanel", + "input": true, + "validateOn": "blur", + "tableView": false, + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "dataGridLabel": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "attributes": {}, + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "allowMultipleMasks": false, + "addons": [], + "inputType": "radio", + "fieldSet": false, + "id": "eeojcy", + "navId": "etpewjh" + }, + { + "label": "Næringsoppgave", + "additionalDescription": false, + "values": [ + { + "value": "leggerVedNaa", + "label": "Jeg legger det ved denne søknaden (anbefalt)", + "shortcut": "" + }, + { + "value": "ettersender", + "label": "Jeg ettersender dokumentasjonen senere (jeg er klar over at NAV ikke kan behandle søknaden før jeg har levert dokumentasjonen)", + "shortcut": "" + }, + { + "value": "levertTidligere", + "label": "Jeg har levert denne dokumentasjonen tidligere", + "shortcut": "" + } + ], + "validate": { + "required": true, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false, + "onlyAvailableItems": false + }, + "key": "naeringsoppgave1", + "properties": { + "vedleggstittel": "Næringsoppgave", + "vedleggskode": "L1" + }, + "customConditional": "show=\r\n(data.hvaOnskerDuALeggeVed.naeringsoppgave === true);", + "type": "radiopanel", + "input": true, + "validateOn": "blur", + "tableView": false, + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "dataGridLabel": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "attributes": {}, + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "allowMultipleMasks": false, + "addons": [], + "inputType": "radio", + "fieldSet": false, + "id": "et9auyi", + "navId": "e88i1im" + }, + { + "label": "Annen dokumentasjon", + "description": "Har du noen annen dokumentasjon du ønsker å legge ved?", + "additionalDescription": false, + "values": [ + { + "value": "nei", + "label": "Nei, jeg har ingen ekstra dokumentasjon jeg vil legge ved.", + "shortcut": "" + }, + { + "value": "leggerVedNaa", + "label": "Ja, jeg legger det ved denne søknaden.", + "shortcut": "" + }, + { + "value": "ettersender", + "label": "Jeg ettersender dokumentasjonen senere.", + "shortcut": "" + } + ], + "validate": { + "required": true, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false, + "onlyAvailableItems": false + }, + "key": "annenDokumentasjon", + "properties": { + "vedleggstittel": "Annet", + "vedleggskode": "N6" + }, + "customConditional": "show=\r\n((data.hvaSlagsVirksomhetDriverDu.frilanser === true) && (data.hvaSlagsVirksomhetDriverDu.selvstendigNaeringsdrivende === false)) ||\r\n((data.hvaSlagsVirksomhetDriverDu.selvstendigNaeringsdrivende === true) && (data.hvaOnskerDuALeggeVed.annet === true));\r\n", + "type": "radiopanel", + "input": true, + "tableView": false, + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "dataGridLabel": false, + "labelPosition": "top", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "attributes": {}, + "validateOn": "change", + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "allowMultipleMasks": false, + "addons": [], + "inputType": "radio", + "fieldSet": false, + "id": "edi383q", + "navId": "ec09wv" + } + ], + "tableView": false, + "placeholder": "", + "prefix": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": false, + "clearOnHide": false, + "refreshOn": "", + "redrawOn": "", + "dataGridLabel": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "validateOn": "change", + "validate": { + "required": false, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "allowMultipleMasks": false, + "addons": [], + "tree": false, + "lazyLoad": false, + "id": "edjpln2", + "navId": "e2fal7l" + } + ], + "properties": { + "skjemanummer": "NAV 08-35.01", + "tema": "SYK", + "innsending": "PAPIR_OG_DIGITAL", + "hasLabeledSignatures": false, + "modified": "2024-02-15T09:25:54.420Z", + "modifiedBy": "Gagnat, Ann Katrin", + "published": "2024-01-08T08:33:50.638Z", + "publishedBy": "Rosseland, Rune", + "publishedLanguages": [], + "ettersending": "PAPIR_OG_DIGITAL" + }, + "access": [ + { + "type": "read_all", + "roles": [ + "000000000000000000000000" + ] + }, + { + "type": "update_all", + "roles": [ + "628ca77305690db58c974d04", + "628ca77305690db58c974d09" + ] + } + ], + "submissionAccess": [], + "created": "2022-03-23T13:15:52.229Z", + "modified": "2024-02-15T09:25:54.902Z", + "machineName": "nav083501", + "project": "628ca77305690db58c974cfd", + "_vid": 0, + "revisions": "", + "submissionRevisions": "" +} diff --git a/mocks/mocks/data/formio-api/test-mellomlagring-v2.json b/mocks/mocks/data/formio-api/test-mellomlagring-v2.json new file mode 100644 index 000000000..ba5307253 --- /dev/null +++ b/mocks/mocks/data/formio-api/test-mellomlagring-v2.json @@ -0,0 +1,1856 @@ +{ + "_id": "63f8ad991fefba14a5dc27d1", + "title": "Test mellomlagring", + "name": "testmellomlagring", + "path": "testmellomlagring", + "type": "form", + "display": "wizard", + "tags": ["nav-skjema", ""], + "owner": "628cbdc405690db58c975374", + "components": [ + { + "title": "Valgfrie opplysninger", + "labelWidth": "", + "labelMargin": "", + "theme": "default", + "breadcrumb": "default", + "breadcrumbClickable": true, + "buttonSettings": { + "previous": true, + "cancel": true, + "next": true + }, + "navigateOnEnter": false, + "saveOnEnter": false, + "scrollToTop": false, + "tooltip": "", + "customClass": "", + "collapsible": false, + "hidden": false, + "hideLabel": false, + "disabled": false, + "modalEdit": false, + "key": "valgfrieOpplysninger", + "tags": [], + "properties": {}, + "customConditional": "", + "conditional": { + "json": "", + "show": null, + "when": null, + "eq": "" + }, + "nextPage": "", + "logic": [], + "attributes": {}, + "overlay": { + "style": "", + "page": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "type": "panel", + "label": "Page 4", + "tabindex": "", + "input": false, + "tableView": false, + "components": [ + { + "legend": "Frokost", + "labelWidth": "", + "labelMargin": "", + "description": "", + "descriptionPosition": "", + "key": "navSkjemagruppe", + "conditional": { + "show": null, + "when": null, + "eq": "", + "json": "" + }, + "customConditional": "", + "type": "navSkjemagruppe", + "label": "Skjemagruppe", + "components": [ + { + "legend": "Drikke", + "labelWidth": "", + "labelMargin": "", + "description": "", + "descriptionPosition": "", + "key": "navSkjemagruppe1", + "conditional": { + "show": null, + "when": null, + "eq": "", + "json": "" + }, + "customConditional": "", + "type": "navSkjemagruppe", + "label": "Skjemagruppe", + "components": [ + { + "label": "Hva drakk du til frokost", + "fieldSize": "input--xxl", + "labelWidth": "", + "labelMargin": "", + "description": "", + "descriptionPosition": "", + "additionalDescription": false, + "prefix": "", + "suffix": "", + "widget": { + "type": "input" + }, + "autocomplete": "", + "spellcheck": true, + "clearOnHide": true, + "customDefaultValue": "", + "calculateValue": "", + "validate": { + "required": false, + "minLength": "", + "maxLength": "", + "customMessage": "", + "custom": "", + "customPrivate": false, + "json": "", + "strictDateValidation": false, + "multiple": false, + "unique": false, + "pattern": "" + }, + "errorLabel": "", + "errors": "", + "key": "hvaDrakkDuTilFrokost", + "conditional": { + "show": null, + "when": null, + "eq": "", + "json": "" + }, + "customConditional": "", + "type": "textfield", + "input": true, + "dataGridLabel": true, + "validateOn": "blur", + "tableView": true, + "navId": "ebz5qji", + "placeholder": "", + "customClass": "", + "multiple": false, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "labelPosition": "top", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "calculateServer": false, + "attributes": {}, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "mask": false, + "inputType": "text", + "inputFormat": "plain", + "inputMask": "", + "displayMask": "", + "truncateMultipleSpaces": false, + "id": "ed9035o", + "defaultValue": "" + } + ], + "input": false, + "persistent": false, + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "tableView": false, + "modalEdit": false, + "dataGridLabel": false, + "labelPosition": "top", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "attributes": {}, + "validateOn": "change", + "validate": { + "required": false, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "tree": false, + "lazyLoad": false, + "id": "e3jd9n", + "navId": "erlnbm" + }, + { + "label": "Hva spiste du til frokost?", + "fieldSize": "input--xxl", + "labelWidth": "", + "labelMargin": "", + "description": "", + "descriptionPosition": "", + "additionalDescription": false, + "prefix": "", + "suffix": "", + "widget": { + "type": "input" + }, + "autocomplete": "", + "spellcheck": true, + "clearOnHide": true, + "customDefaultValue": "", + "calculateValue": "", + "validate": { + "required": false, + "minLength": "", + "maxLength": "", + "customMessage": "", + "custom": "", + "customPrivate": false, + "json": "", + "strictDateValidation": false, + "multiple": false, + "unique": false, + "pattern": "" + }, + "errorLabel": "", + "errors": "", + "key": "hvaSpisteDuTilFrokost", + "conditional": { + "show": null, + "when": null, + "eq": "", + "json": "" + }, + "customConditional": "", + "type": "textfield", + "input": true, + "dataGridLabel": true, + "validateOn": "blur", + "tableView": true, + "navId": "ec6rbk", + "placeholder": "", + "customClass": "", + "multiple": false, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "labelPosition": "top", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "calculateServer": false, + "attributes": {}, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "mask": false, + "inputType": "text", + "inputFormat": "plain", + "inputMask": "", + "displayMask": "", + "truncateMultipleSpaces": false, + "id": "ezj81mf", + "defaultValue": "" + } + ], + "input": false, + "persistent": false, + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "tableView": false, + "modalEdit": false, + "dataGridLabel": false, + "labelPosition": "top", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "attributes": {}, + "validateOn": "change", + "validate": { + "required": false, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "tree": false, + "lazyLoad": false, + "id": "e7x6pgt", + "navId": "efubfj" + }, + { + "label": "Hva syntes du om frokosten?", + "fieldSize": "input--xxl", + "labelWidth": "", + "labelMargin": "", + "description": "", + "descriptionPosition": "", + "additionalDescription": false, + "prefix": "", + "suffix": "", + "widget": { + "type": "input" + }, + "autocomplete": "", + "spellcheck": true, + "clearOnHide": true, + "customDefaultValue": "", + "calculateValue": "", + "validate": { + "required": true, + "minLength": "", + "maxLength": "", + "customMessage": "", + "custom": "", + "customPrivate": false, + "json": "", + "strictDateValidation": false, + "multiple": false, + "unique": false, + "pattern": "" + }, + "errorLabel": "", + "errors": "", + "key": "hvaSyntesDuOmFrokosten", + "conditional": { + "show": null, + "when": null, + "eq": "", + "json": "" + }, + "customConditional": "show = !!data.hvaDrakkDuTilFrokost", + "type": "textfield", + "input": true, + "dataGridLabel": true, + "validateOn": "blur", + "tableView": true, + "navId": "em2tyfi", + "placeholder": "", + "customClass": "", + "multiple": false, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "labelPosition": "top", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "calculateServer": false, + "attributes": {}, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "mask": false, + "inputType": "text", + "inputFormat": "plain", + "inputMask": "", + "displayMask": "", + "truncateMultipleSpaces": false, + "id": "ebx00ap", + "defaultValue": "" + } + ], + "placeholder": "", + "prefix": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": false, + "clearOnHide": false, + "refreshOn": "", + "redrawOn": "", + "dataGridLabel": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "validateOn": "change", + "validate": { + "required": false, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "allowMultipleMasks": false, + "addons": [], + "tree": false, + "lazyLoad": false, + "id": "evzbmn9", + "navId": "eieblbe" + }, + { + "title": "Gave", + "labelWidth": "", + "labelMargin": "", + "theme": "default", + "breadcrumb": "default", + "breadcrumbClickable": true, + "buttonSettings": { + "previous": true, + "cancel": true, + "next": true + }, + "navigateOnEnter": false, + "saveOnEnter": false, + "scrollToTop": false, + "tooltip": "", + "customClass": "", + "collapsible": false, + "hidden": false, + "hideLabel": false, + "disabled": false, + "modalEdit": false, + "key": "gave", + "tags": [], + "properties": {}, + "customConditional": "", + "conditional": { + "json": "", + "show": null, + "when": null, + "eq": "" + }, + "nextPage": "", + "logic": [], + "attributes": {}, + "overlay": { + "style": "", + "page": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "type": "panel", + "label": "Panel", + "tabindex": "", + "input": false, + "components": [ + { + "label": "Ønsker du å få gaven innpakket", + "additionalDescription": false, + "values": [ + { + "value": "ja", + "label": "Ja", + "shortcut": "" + }, + { + "value": "nei", + "label": "Nei", + "shortcut": "" + } + ], + "validate": { + "required": true, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false, + "onlyAvailableItems": false + }, + "key": "onskerDuAFaGavenInnpakket", + "type": "radiopanel", + "input": true, + "dataGridLabel": true, + "validateOn": "blur", + "tableView": false, + "navId": "ezcnrkl", + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "attributes": {}, + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "inputType": "radio", + "fieldSet": false, + "id": "e12lfq" + }, + { + "label": "Farge", + "labelWidth": "", + "labelMargin": "", + "description": "", + "descriptionPosition": "", + "additionalDescription": false, + "values": [ + { + "value": "rod", + "label": "Rød", + "shortcut": "" + }, + { + "value": "gronn", + "label": "Grønn", + "shortcut": "" + } + ], + "clearOnHide": true, + "customDefaultValue": "", + "calculateValue": "", + "validate": { + "required": true, + "onlyAvailableItems": false, + "customMessage": "", + "custom": "", + "customPrivate": false, + "json": "", + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "errorLabel": "", + "errors": "", + "key": "farge", + "tags": [], + "properties": {}, + "conditional": { + "show": true, + "when": "onskerDuAFaGavenInnpakket", + "eq": "ja", + "json": "" + }, + "customConditional": "", + "type": "radiopanel", + "input": true, + "dataGridLabel": true, + "validateOn": "blur", + "tableView": false, + "navId": "ezkgo1", + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "labelPosition": "top", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "calculateServer": false, + "widget": null, + "attributes": {}, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "allowMultipleMasks": false, + "addons": [], + "inputType": "radio", + "fieldSet": false, + "id": "ehhnqfa", + "defaultValue": "" + }, + { + "label": "Tekst på kortet", + "fieldSize": "input--xxl", + "labelWidth": "", + "labelMargin": "", + "description": "", + "descriptionPosition": "", + "additionalDescription": false, + "prefix": "", + "suffix": "", + "widget": { + "type": "input" + }, + "autocomplete": "", + "spellcheck": true, + "clearOnHide": true, + "customDefaultValue": "", + "calculateValue": "", + "validate": { + "required": true, + "minLength": "", + "maxLength": "", + "customMessage": "", + "custom": "", + "customPrivate": false, + "json": "", + "strictDateValidation": false, + "multiple": false, + "unique": false, + "pattern": "" + }, + "errorLabel": "", + "errors": "", + "key": "tekstPaKortet", + "conditional": { + "show": true, + "when": "onskerDuAFaGavenInnpakket", + "eq": "ja", + "json": "" + }, + "customConditional": "", + "type": "textfield", + "input": true, + "dataGridLabel": true, + "validateOn": "blur", + "placeholder": "", + "customClass": "", + "multiple": false, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "refreshOn": "", + "redrawOn": "", + "tableView": true, + "modalEdit": false, + "labelPosition": "top", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "calculateServer": false, + "attributes": {}, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "mask": false, + "inputType": "text", + "inputFormat": "plain", + "inputMask": "", + "displayMask": "", + "truncateMultipleSpaces": false, + "id": "ebduncc", + "defaultValue": "", + "navId": "ekxjlog" + } + ], + "navId": "eugbfrj", + "tableView": false, + "placeholder": "", + "prefix": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": false, + "clearOnHide": false, + "refreshOn": "", + "redrawOn": "", + "dataGridLabel": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "validateOn": "change", + "validate": { + "required": false, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "allowMultipleMasks": false, + "addons": [], + "tree": false, + "lazyLoad": false, + "id": "evett5r" + }, + { + "title": "Levering", + "labelWidth": "", + "labelMargin": "", + "theme": "default", + "breadcrumb": "default", + "breadcrumbClickable": true, + "buttonSettings": { + "previous": true, + "cancel": true, + "next": true + }, + "navigateOnEnter": false, + "saveOnEnter": false, + "scrollToTop": false, + "tooltip": "", + "customClass": "", + "collapsible": false, + "hidden": false, + "hideLabel": false, + "disabled": false, + "modalEdit": false, + "key": "levering", + "tags": [], + "properties": {}, + "customConditional": "", + "conditional": { + "json": "", + "show": null, + "when": null, + "eq": "" + }, + "nextPage": "", + "logic": [], + "attributes": {}, + "overlay": { + "style": "", + "page": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "type": "panel", + "label": "Page 2", + "tabindex": "", + "input": false, + "tableView": false, + "components": [ + { + "label": "Hemmelig kode", + "fieldSize": "input--xxl", + "labelWidth": "", + "labelMargin": "", + "description": "", + "descriptionPosition": "", + "additionalDescription": false, + "prefix": "", + "suffix": "", + "widget": { + "type": "input" + }, + "autocomplete": "", + "spellcheck": true, + "clearOnHide": true, + "customDefaultValue": "", + "calculateValue": "", + "validate": { + "required": false, + "minLength": "", + "maxLength": "", + "customMessage": "", + "custom": "", + "customPrivate": false, + "json": "", + "strictDateValidation": false, + "multiple": false, + "unique": false, + "pattern": "" + }, + "errorLabel": "", + "errors": "", + "key": "hemmeligKode", + "conditional": { + "show": null, + "when": null, + "eq": "", + "json": "" + }, + "customConditional": "", + "type": "textfield", + "input": true, + "dataGridLabel": true, + "validateOn": "blur", + "placeholder": "", + "customClass": "", + "multiple": false, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "refreshOn": "", + "redrawOn": "", + "tableView": true, + "modalEdit": false, + "labelPosition": "top", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "calculateServer": false, + "attributes": {}, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "mask": false, + "inputType": "text", + "inputFormat": "plain", + "inputMask": "", + "displayMask": "", + "truncateMultipleSpaces": false, + "id": "e9uqjh8", + "defaultValue": "", + "navId": "e6sdkm5" + }, + { + "label": "Hvordan ønsker du å motta pakken?", + "fieldSize": "input--xxl", + "labelWidth": "", + "labelMargin": "", + "description": "", + "dataSrc": "values", + "data": { + "values": [ + { + "label": "Post i butikk", + "value": "postIButikk" + }, + { + "label": "Hente selv", + "value": "henteSelv" + } + ], + "resource": "" + }, + "valueProperty": "", + "clearOnHide": true, + "customDefaultValue": "", + "calculateValue": "", + "validate": { + "required": true, + "onlyAvailableItems": true, + "custom": "", + "customPrivate": false, + "json": "", + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "errors": "", + "key": "hvordanOnskerDuAMottaPakken", + "conditional": { + "show": null, + "when": null, + "eq": "", + "json": "" + }, + "customConditional": "", + "type": "navSelect", + "input": true, + "dataGridLabel": true, + "validateOn": "blur", + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "refreshOn": "", + "redrawOn": "", + "tableView": false, + "modalEdit": false, + "labelPosition": "top", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "calculateServer": false, + "widget": null, + "attributes": {}, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "id": "e3vwglb", + "defaultValue": null, + "navId": "edqy1v" + } + ], + "placeholder": "", + "prefix": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": false, + "clearOnHide": false, + "refreshOn": "", + "redrawOn": "", + "dataGridLabel": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "validateOn": "change", + "validate": { + "required": false, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "allowMultipleMasks": false, + "addons": [], + "tree": false, + "lazyLoad": false, + "id": "eojwkra", + "navId": "ew9zd79" + }, + { + "title": "Velg post i butikk", + "labelWidth": "", + "labelMargin": "", + "theme": "default", + "breadcrumb": "default", + "breadcrumbClickable": true, + "buttonSettings": { + "previous": true, + "cancel": true, + "next": true + }, + "navigateOnEnter": false, + "saveOnEnter": false, + "scrollToTop": false, + "tooltip": "", + "customClass": "", + "collapsible": false, + "hidden": false, + "hideLabel": false, + "disabled": false, + "modalEdit": false, + "key": "velgPostIButikk", + "tags": [], + "properties": {}, + "customConditional": "show = data.hvordanOnskerDuAMottaPakken.value === \"postIButikk\";", + "conditional": { + "json": "", + "show": null, + "when": null, + "eq": "" + }, + "nextPage": "", + "logic": [], + "attributes": {}, + "overlay": { + "style": "", + "page": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "type": "panel", + "label": "Page 6", + "tabindex": "", + "input": false, + "tableView": false, + "components": [ + { + "label": "Navn på butikk hvor du ønsker å hente pakken", + "fieldSize": "input--xxl", + "additionalDescription": false, + "validate": { + "required": true, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false, + "minLength": "", + "maxLength": "", + "pattern": "" + }, + "key": "navnPaButikkHvorDuOnskerAHentePakken", + "type": "textfield", + "input": true, + "dataGridLabel": true, + "validateOn": "blur", + "tableView": true, + "navId": "eivvqzwk", + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": { + "type": "input" + }, + "attributes": {}, + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "mask": false, + "inputType": "text", + "inputFormat": "plain", + "inputMask": "", + "displayMask": "", + "spellcheck": true, + "truncateMultipleSpaces": false, + "id": "eqwvpk9" + } + ], + "navId": "e6bm4qq", + "placeholder": "", + "prefix": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": false, + "clearOnHide": false, + "refreshOn": "", + "redrawOn": "", + "dataGridLabel": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "validateOn": "change", + "validate": { + "required": false, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "allowMultipleMasks": false, + "addons": [], + "tree": false, + "lazyLoad": false, + "id": "eu04i4" + }, + { + "title": "Reklame og nyhetsbrev", + "labelWidth": "", + "labelMargin": "", + "theme": "default", + "breadcrumb": "default", + "breadcrumbClickable": true, + "buttonSettings": { + "previous": true, + "cancel": true, + "next": true + }, + "navigateOnEnter": false, + "saveOnEnter": false, + "scrollToTop": false, + "tooltip": "", + "customClass": "", + "collapsible": false, + "hidden": false, + "hideLabel": false, + "disabled": false, + "modalEdit": false, + "key": "reklameOgNyhetsbrev", + "tags": [], + "properties": {}, + "customConditional": "", + "conditional": { + "json": "", + "show": null, + "when": null, + "eq": "" + }, + "nextPage": "", + "logic": [], + "attributes": {}, + "overlay": { + "style": "", + "page": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "type": "panel", + "label": "Page 3", + "tabindex": "", + "components": [ + { + "label": "Kryss av hvis du ønsker daglig reklame på e-post", + "additionalDescription": false, + "key": "kryssAvHvisDuOnskerDagligReklamePaEPost", + "type": "navCheckbox", + "input": true, + "validateOn": "blur", + "tableView": false, + "navId": "eusdahl", + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "dataGridLabel": true, + "labelPosition": "right", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "attributes": {}, + "validate": { + "required": false, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "inputType": "checkbox", + "value": "", + "name": "", + "id": "en2dlb2" + } + ], + "input": false, + "tableView": false, + "navId": "ev6i47g", + "placeholder": "", + "prefix": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": false, + "clearOnHide": false, + "refreshOn": "", + "redrawOn": "", + "dataGridLabel": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "validateOn": "change", + "validate": { + "required": false, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "allowMultipleMasks": false, + "addons": [], + "tree": false, + "lazyLoad": false, + "id": "e8itsjg" + }, + { + "title": "Vedlegg", + "labelWidth": "", + "labelMargin": "", + "theme": "default", + "tooltip": "", + "customClass": "", + "collapsible": false, + "hidden": false, + "hideLabel": false, + "disabled": false, + "modalEdit": false, + "key": "vedlegg", + "tags": [], + "properties": {}, + "customConditional": "", + "conditional": { + "json": "", + "show": null, + "when": null, + "eq": "" + }, + "logic": [], + "attributes": {}, + "overlay": { + "style": "", + "page": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "type": "panel", + "label": "Panel", + "breadcrumb": "default", + "tabindex": "", + "input": false, + "isAttachmentPanel": true, + "components": [ + { + "label": "Annen dokumentasjon", + "description": "Har du noen annen dokumentasjon du ønsker å legge ved?", + "type": "radiopanel", + "key": "annenDokumentasjon", + "otherDocumentation": true, + "input": true, + "clearOnHide": true, + "validate": { + "required": true, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false, + "onlyAvailableItems": false + }, + "properties": { + "vedleggstittel": "Annet", + "vedleggskode": "N6" + }, + "values": [ + { + "value": "nei", + "label": "Nei, jeg har ingen ekstra dokumentasjon jeg vil legge ved." + }, + { + "value": "leggerVedNaa", + "label": "Ja, jeg legger det ved denne søknaden." + }, + { + "value": "ettersender", + "label": "Jeg ettersender dokumentasjonen senere." + } + ], + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "refreshOn": "", + "redrawOn": "", + "tableView": false, + "modalEdit": false, + "dataGridLabel": false, + "labelPosition": "top", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "attributes": {}, + "validateOn": "change", + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "allowMultipleMasks": false, + "addons": [], + "inputType": "radio", + "fieldSet": false, + "id": "euxvhlh", + "navId": "em26fir" + }, + { + "label": "Oppmøtebekreftelse", + "additionalDescription": false, + "values": [ + { + "value": "leggerVedNaa", + "label": "Jeg legger det ved denne søknaden (anbefalt)", + "shortcut": "" + }, + { + "value": "ettersender", + "label": "Jeg ettersender dokumentasjonen senere (jeg er klar over at NAV ikke kan behandle søknaden før jeg har levert dokumentasjonen)", + "shortcut": "" + }, + { + "value": "levertTidligere", + "label": "Jeg har levert denne dokumentasjonen tidligere", + "shortcut": "" + } + ], + "validate": { + "required": true, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false, + "onlyAvailableItems": false + }, + "key": "oppmotebekreftelse", + "properties": { + "vedleggstittel": "Bekreftelse på oppmøte", + "vedleggskode": "M2" + }, + "type": "radiopanel", + "input": true, + "validateOn": "blur", + "tableView": false, + "navId": "eijyzy", + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "dataGridLabel": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "attributes": {}, + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "allowMultipleMasks": false, + "addons": [], + "inputType": "radio", + "fieldSet": false, + "id": "evxb3cg", + "keyModified": true + }, + { + "label": "Bekreftelse på at du av helsemessige årsaker må benytte dyrere transport", + "additionalDescription": false, + "values": [ + { + "value": "leggerVedNaa", + "label": "Jeg legger det ved denne søknaden (anbefalt)", + "shortcut": "" + }, + { + "value": "ettersender", + "label": "Jeg ettersender dokumentasjonen senere (jeg er klar over at NAV ikke kan behandle søknaden før jeg har levert dokumentasjonen)", + "shortcut": "" + }, + { + "value": "levertTidligere", + "label": "Jeg har levert denne dokumentasjonen tidligere", + "shortcut": "" + } + ], + "validate": { + "required": true, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false, + "onlyAvailableItems": false + }, + "key": "bekreftelsePaAtDuAvHelsemessigeArsakerMaBenytteDyrereTransport", + "properties": { + "vedleggstittel": " Dokumentasjon av behov for dyrere transportmiddel", + "vedleggskode": "M4" + }, + "type": "radiopanel", + "input": true, + "validateOn": "blur", + "tableView": false, + "navId": "e3dw1sg", + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "dataGridLabel": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "attributes": {}, + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "allowMultipleMasks": false, + "addons": [], + "inputType": "radio", + "fieldSet": false, + "id": "eferou" + } + ], + "placeholder": "", + "prefix": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": false, + "clearOnHide": false, + "refreshOn": "", + "redrawOn": "", + "tableView": false, + "dataGridLabel": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": null, + "validateOn": "change", + "validate": { + "required": false, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "allowMultipleMasks": false, + "addons": [], + "tree": false, + "lazyLoad": false, + "id": "evlaal3", + "navId": "eohexn4" + } + ], + "properties": { + "skjemanummer": "test-mellomlagring", + "tema": "BAR", + "innsending": "PAPIR_OG_DIGITAL", + "signatures": [ + { + "label": "", + "description": "", + "key": "1b0dd061-b505-4665-9037-a7e66e279c18" + } + ], + "isTestForm": true, + "modified": "2023-08-30T12:17:45.811Z", + "modifiedBy": "magnus.roed.hestvik@nav.no", + "ettersending": "PAPIR_OG_DIGITAL" + }, + "project": "628ca77305690db58c974cfd", + "revisions": "", + "submissionRevisions": "", + "_vid": 0, + "access": [ + { + "type": "read_all", + "roles": ["628ca77305690db58c974d04", "628ca77305690db58c974d09", "628ca77305690db58c974d0e"] + } + ], + "submissionAccess": [], + "created": "2023-02-24T12:29:13.488Z", + "modified": "2023-08-30T12:17:46.722Z", + "machineName": "jvcemxwcpghcqjn:testmellomlagring" +} diff --git a/mocks/mocks/data/innsending-api/mellomlagring/form-select/saved-complete-v1.json b/mocks/mocks/data/innsending-api/mellomlagring/form-select/saved-complete-v1.json new file mode 100644 index 000000000..af1dbe1ea --- /dev/null +++ b/mocks/mocks/data/innsending-api/mellomlagring/form-select/saved-complete-v1.json @@ -0,0 +1,61 @@ +{ + "brukerId": "03876399856", + "skjemanr": "Test-select", + "tittel": "Tester nedtrekksmeny", + "tema": "BIL", + "spraak": "nb", + "hoveddokument": { + "vedleggsnr": "Test-select", + "tittel": "Tester nedtrekksmeny", + "label": "Tester nedtrekksmeny", + "pakrevd": true, + "mimetype": "application/pdf" + }, + "hoveddokumentVariant": { + "vedleggsnr": "Test-select", + "tittel": "Tester nedtrekksmeny", + "label": "Tester nedtrekksmeny", + "pakrevd": false, + "mimetype": "application/json", + "document": { + "language": "nb-NO", + "data": { + "data": { + "velgInstrument": { + "label": "Piano", + "value": "piano" + }, + "velgLand": { + "label": "Italia", + "value": "IT" + }, + "velgValutaDuVilBetaleMed": { + "label": "Euro (EUR)", + "value": "EUR" + } + }, + "metadata": { + "timezone": "Europe/Oslo", + "offset": 60, + "origin": "https://fyllut-preprod.intern.dev.nav.no", + "referrer": "https://fyllut-preprod.intern.dev.nav.no/fyllut/testselect/paabegynt?sub=digital", + "browserName": "Netscape", + "userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36", + "pathName": "/fyllut/testselect/veiledning", + "onLine": true + }, + "state": "submitted", + "_vnote": "" + } + } + }, + "innsendingsId": "df6c8a69-9eb0-4878-b51f-38b3849ef9b6", + "status": "Opprettet", + "vedleggsListe": [], + "kanLasteOppAnnet": true, + "fristForEttersendelse": 14, + "endretDato": "2024-02-09T12:50:15.227151+01:00", + "skalSlettesDato": "2024-04-05", + "skjemaPath": "testselect", + "visningsType": "fyllUt" +} diff --git a/mocks/mocks/data/innsending-api/mellomlagring/form-select/saved-invalid-country-v1.json b/mocks/mocks/data/innsending-api/mellomlagring/form-select/saved-invalid-country-v1.json new file mode 100644 index 000000000..3f149f5c1 --- /dev/null +++ b/mocks/mocks/data/innsending-api/mellomlagring/form-select/saved-invalid-country-v1.json @@ -0,0 +1,61 @@ +{ + "brukerId": "03876399856", + "skjemanr": "Test-select", + "tittel": "Tester nedtrekksmeny", + "tema": "BIL", + "spraak": "nb", + "hoveddokument": { + "vedleggsnr": "Test-select", + "tittel": "Tester nedtrekksmeny", + "label": "Tester nedtrekksmeny", + "pakrevd": true, + "mimetype": "application/pdf" + }, + "hoveddokumentVariant": { + "vedleggsnr": "Test-select", + "tittel": "Tester nedtrekksmeny", + "label": "Tester nedtrekksmeny", + "pakrevd": false, + "mimetype": "application/json", + "document": { + "language": "nb-NO", + "data": { + "data": { + "velgInstrument": { + "label": "Piano", + "value": "piano" + }, + "velgLand": { + "label": "Invalid country", + "value": "INVALID" + }, + "velgValutaDuVilBetaleMed": { + "label": "Euro (EUR)", + "value": "EUR" + } + }, + "metadata": { + "timezone": "Europe/Oslo", + "offset": 60, + "origin": "https://fyllut-preprod.intern.dev.nav.no", + "referrer": "https://fyllut-preprod.intern.dev.nav.no/fyllut/testselect/paabegynt?sub=digital", + "browserName": "Netscape", + "userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36", + "pathName": "/fyllut/testselect/veiledning", + "onLine": true + }, + "state": "submitted", + "_vnote": "" + } + } + }, + "innsendingsId": "df6c8a69-9eb0-4878-b51f-38b3849ef9b6", + "status": "Opprettet", + "vedleggsListe": [], + "kanLasteOppAnnet": true, + "fristForEttersendelse": 14, + "endretDato": "2024-02-09T12:50:15.227151+01:00", + "skalSlettesDato": "2024-04-05", + "skjemaPath": "testselect", + "visningsType": "fyllUt" +} diff --git a/mocks/mocks/data/innsending-api/mellomlagring/form-select/saved-invalid-instrument-v2.json b/mocks/mocks/data/innsending-api/mellomlagring/form-select/saved-invalid-instrument-v2.json new file mode 100644 index 000000000..af1dbe1ea --- /dev/null +++ b/mocks/mocks/data/innsending-api/mellomlagring/form-select/saved-invalid-instrument-v2.json @@ -0,0 +1,61 @@ +{ + "brukerId": "03876399856", + "skjemanr": "Test-select", + "tittel": "Tester nedtrekksmeny", + "tema": "BIL", + "spraak": "nb", + "hoveddokument": { + "vedleggsnr": "Test-select", + "tittel": "Tester nedtrekksmeny", + "label": "Tester nedtrekksmeny", + "pakrevd": true, + "mimetype": "application/pdf" + }, + "hoveddokumentVariant": { + "vedleggsnr": "Test-select", + "tittel": "Tester nedtrekksmeny", + "label": "Tester nedtrekksmeny", + "pakrevd": false, + "mimetype": "application/json", + "document": { + "language": "nb-NO", + "data": { + "data": { + "velgInstrument": { + "label": "Piano", + "value": "piano" + }, + "velgLand": { + "label": "Italia", + "value": "IT" + }, + "velgValutaDuVilBetaleMed": { + "label": "Euro (EUR)", + "value": "EUR" + } + }, + "metadata": { + "timezone": "Europe/Oslo", + "offset": 60, + "origin": "https://fyllut-preprod.intern.dev.nav.no", + "referrer": "https://fyllut-preprod.intern.dev.nav.no/fyllut/testselect/paabegynt?sub=digital", + "browserName": "Netscape", + "userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36", + "pathName": "/fyllut/testselect/veiledning", + "onLine": true + }, + "state": "submitted", + "_vnote": "" + } + } + }, + "innsendingsId": "df6c8a69-9eb0-4878-b51f-38b3849ef9b6", + "status": "Opprettet", + "vedleggsListe": [], + "kanLasteOppAnnet": true, + "fristForEttersendelse": 14, + "endretDato": "2024-02-09T12:50:15.227151+01:00", + "skalSlettesDato": "2024-04-05", + "skjemaPath": "testselect", + "visningsType": "fyllUt" +} diff --git a/mocks/mocks/data/innsending-api/mellomlagring/form-select/saved-partial-v1.json b/mocks/mocks/data/innsending-api/mellomlagring/form-select/saved-partial-v1.json new file mode 100644 index 000000000..f11ca7e45 --- /dev/null +++ b/mocks/mocks/data/innsending-api/mellomlagring/form-select/saved-partial-v1.json @@ -0,0 +1,41 @@ +{ + "brukerId": "03876399856", + "skjemanr": "Test-select", + "tittel": "Tester nedtrekksmeny", + "tema": "BIL", + "spraak": "nb", + "hoveddokument": { + "vedleggsnr": "Test-select", + "tittel": "Tester nedtrekksmeny", + "label": "Tester nedtrekksmeny", + "pakrevd": true, + "mimetype": "application/pdf" + }, + "hoveddokumentVariant": { + "vedleggsnr": "Test-select", + "tittel": "Tester nedtrekksmeny", + "label": "Tester nedtrekksmeny", + "pakrevd": false, + "mimetype": "application/json", + "document": { + "language": "nb-NO", + "data": { + "data": { + "velgInstrument": { + "label": "Piano", + "value": "piano" + } + } + } + } + }, + "innsendingsId": "df6c8a69-9eb0-4878-b51f-38b3849ef9b6", + "status": "Opprettet", + "vedleggsListe": [], + "kanLasteOppAnnet": true, + "fristForEttersendelse": 14, + "endretDato": "2024-02-09T12:36:59.940133+01:00", + "skalSlettesDato": "2024-04-05", + "skjemaPath": "testselect", + "visningsType": "fyllUt" +} diff --git a/mocks/mocks/data/innsending-api/mellomlagring/nav083591/complete.json b/mocks/mocks/data/innsending-api/mellomlagring/nav083591/complete.json new file mode 100644 index 000000000..84ec6f70e --- /dev/null +++ b/mocks/mocks/data/innsending-api/mellomlagring/nav083591/complete.json @@ -0,0 +1,111 @@ +{ + "brukerId": "03876399856", + "skjemanr": "NAV 08-35.01", + "tittel": "Inntektsopplysninger for selvstendig næringsdrivende og/eller frilansere som skal ha sykepenger", + "tema": "SYK", + "spraak": "nb", + "hoveddokument": { + "vedleggsnr": "NAV 08-35.01", + "tittel": "Inntektsopplysninger for selvstendig næringsdrivende og/eller frilansere som skal ha sykepenger", + "label": "Inntektsopplysninger for selvstendig næringsdrivende og/eller frilansere som skal ha sykepenger", + "pakrevd": true, + "mimetype": "application/pdf" + }, + "hoveddokumentVariant": { + "vedleggsnr": "NAV 08-35.01", + "tittel": "Inntektsopplysninger for selvstendig næringsdrivende og/eller frilansere som skal ha sykepenger", + "label": "Inntektsopplysninger for selvstendig næringsdrivende og/eller frilansere som skal ha sykepenger", + "pakrevd": false, + "mimetype": "application/json", + "document": { + "language": "nb-NO", + "data": { + "data": { + "jegPlikterAGiDeOpplysningerOgLevereDeDokumenteneSomErNodvendigeForAtNavSkalKunneVurdereMineRettigheter": true, + "jegHarGjortMegKjentMedMinPliktTilAInformereNavOmEndringerSomKanHaBetydningForSykepengeneJegFarUtbetalt": true, + "hvaSlagsVirksomhetDriverDu": { + "selvstendigNaeringsdrivende": true, + "frilanser": true + }, + "fornavnSoker": "test", + "etternavnSoker": "test", + "harDuNorskFodselsnummerEllerDNummer": "ja", + "fodselsnummerDNummerSoker": "25058236813", + "oppgiDatoForForsteSykefravaersdagDdMmAaaa": "2024-02-01", + "hvaSlagsSelvstendigNaeringsvirksomhetDriverDu": { + "enkeltpersonforetak": true, + "fiskeBladA": false, + "fiskeBladB": false, + "fiskeLott": false, + "fiskeHyre": false, + "jordbrukSkogbruk": false, + "dagmammaIEgetHjem": false, + "annenVirksomhet": false + }, + "harDuInntekterSomArbeidstakerITilleggTilInntektSomSelvstendigNaeringsdrivendeOgEllerFrilanser": "nei", + "andreOpplysningerDuMenerErViktigeNarNavSkalFastsetteSykepengegrunnlagetDitt": "nei", + "harDuDokumentasjonDuOnskerALeggeVedSoknaden": "ja", + "hvaOnskerDuALeggeVed": { + "personinntektsskjema": true, + "resultatregnskap": true, + "naeringsoppgave": false, + "annet": false + }, + "narStartetDuSomFrilanserDdMmAaaa": "2023-11-01", + "harDuInntektFraFosterhjem": "nei", + "orgNr": "242667913", + "narStartetDuVirksomhetenDinDdMmAaaa": "2024-02-14", + "hvaHarDuHattINaeringsresultatForSkattDeSiste12Manedene": 1200000, + "harDetVaertDriftIVirksomhetenFremTilDuBleSykmeldt": "ja", + "vilDuFortsattHaNaeringsinntektMensDuErSykmeldt": "nei", + "erVirksomhetenRegistrertINorge": "nei", + "landvelger": { + "label": "Frankrike", + "value": "FR" + }, + "harDuFattEnVarigEndringAvArbeidssituasjonenVirksomhetenILopetAvDeSisteFireArene": "nei", + "personinntektsskjema1": "leggerVedNaa", + "resultatregnskap1": "leggerVedNaa" + }, + "metadata": { + "timezone": "Europe/Oslo", + "offset": 60, + "origin": "https://fyllut-preprod.intern.dev.nav.no", + "referrer": "https://fyllut-preprod.intern.dev.nav.no/fyllut/nav083501", + "browserName": "Netscape", + "userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36", + "pathName": "/fyllut/nav083501/vedlegg", + "onLine": true + }, + "state": "submitted", + "_vnote": "" + } + } + }, + "innsendingsId": "2db25aab-3524-4426-a333-489542bf16bf", + "status": "Opprettet", + "vedleggsListe": [ + { + "vedleggsnr": "L2", + "tittel": "Personinntektsskjema", + "label": "Personinntektsskjema", + "pakrevd": true, + "beskrivelse": "", + "formioId": "eiaivlp" + }, + { + "vedleggsnr": "L2", + "tittel": "Resultatregnskap", + "label": "Resultatregnskap", + "pakrevd": true, + "beskrivelse": "", + "formioId": "etpewjh" + } + ], + "kanLasteOppAnnet": true, + "fristForEttersendelse": 14, + "endretDato": "2024-02-15T10:26:31.152815+01:00", + "skalSlettesDato": "2024-04-11", + "skjemaPath": "nav083501", + "visningsType": "fyllUt" +} diff --git a/mocks/mocks/routes/formio-api.js b/mocks/mocks/routes/formio-api.js index db45c6aa0..e08f00ec0 100644 --- a/mocks/mocks/routes/formio-api.js +++ b/mocks/mocks/routes/formio-api.js @@ -8,6 +8,9 @@ const formDatagrid = require('../data/formio-api/datagrid.json'); const formNavdatepicker = require('../data/formio-api/navdatepicker.json'); const formSubmissionMethod = require('../data/formio-api/submission-method.json'); const formTestMellomlagring = require('../data/formio-api/test-mellomlagring.json'); +const formTestMellomlagringV2 = require('../data/formio-api/test-mellomlagring-v2.json'); +const formSelectV1 = require('../data/formio-api/form-select-v1.json'); +const formSelectV2 = require('../data/formio-api/form-select-v2.json'); const formTestPrefillData = require('../data/formio-api/prefill-data.json'); const translationsCypress101 = require('../data/formio-api/cypress101-translation.json'); const translationsConditionalXmas = require('../data/formio-api/conditionalxmas-translation.json'); @@ -17,6 +20,7 @@ const globalTranslationsEn = require('../data/formio-api/global-translation.json const formCustomCompsAlert = require('../data/formio-api/custom-components-alert.json'); const formActivities = require('../data/formio-api/activities.json'); const formDatagridConditional = require('../data/formio-api/datagrid-conditional.json'); +const nav083501 = require('../data/formio-api/nav083501.json'); const allForms = [ { form: formCypress101, translations: translationsCypress101 }, @@ -29,10 +33,12 @@ const allForms = [ { form: formDatagrid, translations: undefined }, { form: formNavdatepicker, translations: undefined }, { form: formSubmissionMethod, translations: translationsSubmissionMethod }, - { form: formTestMellomlagring, translations: undefined }, + { form: formTestMellomlagring, formV2: formTestMellomlagringV2, translations: undefined }, { form: formTestPrefillData, translations: undefined }, + { form: formSelectV1, formV2: formSelectV2, translations: undefined }, { form: formActivities, translations: undefined }, { form: formDatagridConditional, translations: undefined }, + { form: nav083501, translations: undefined }, ]; const findTestdata = (formPath) => allForms.find((testdata) => testdata.form.path === formPath); @@ -67,6 +73,31 @@ module.exports = [ }, }, }, + { + id: 'success-v2', + type: 'middleware', + options: { + middleware: (req, res) => { + const formPath = req.query.path; + if (formPath) { + const testdata = findTestdata(formPath); + const form = testdata?.formV2 ?? testdata?.form; + if (form) { + res.status(200); + res.contentType('application/json; charset=UTF-8'); + res.send([form]); + } else { + res.status(404); + res.send(); + } + } else { + res.status(200); + res.contentType('application/json; charset=UTF-8'); + res.send(allForms.map((obj) => obj.formV2 ?? obj.form).filter((form) => !!form)); + } + }, + }, + }, ], }, { diff --git a/mocks/mocks/routes/innsending-api.js b/mocks/mocks/routes/innsending-api.js index 5b9f51ef7..9d99c62c9 100644 --- a/mocks/mocks/routes/innsending-api.js +++ b/mocks/mocks/routes/innsending-api.js @@ -7,7 +7,12 @@ const activities = require('../data/innsending-api/activities/activities.json'); const paabegyntMellomlagringOgInnsendt = require('../data/innsending-api/active-tasks/mellomlagringOgEttersending.json'); const paabegyntMellomlagring = require('../data/innsending-api/active-tasks/mellomlagring.json'); const paabegyntInnsendt = require('../data/innsending-api/active-tasks/ettersending.json'); +const formSelectSoknadPartialV1 = require('../data/innsending-api/mellomlagring/form-select/saved-partial-v1.json'); +const formSelectSoknadCompleteV1 = require('../data/innsending-api/mellomlagring/form-select/saved-complete-v1.json'); +const formSelectSoknadInvalidCountryV1 = require('../data/innsending-api/mellomlagring/form-select/saved-invalid-country-v1.json'); +const formSelectSoknadInvalidInstrumentV1 = require('../data/innsending-api/mellomlagring/form-select/saved-invalid-instrument-v2.json'); const mellomlagringActivities = require('../data/innsending-api/activities/mellomlagring-activities.json'); +const nav083591soknadComplete = require('../data/innsending-api/mellomlagring/nav083591/complete.json'); const objectToByteArray = (obj) => Array.from(new TextEncoder().encode(JSON.stringify(obj))); const base64Encode = (data) => { @@ -161,6 +166,46 @@ module.exports = [ body: convertToInnsendingApiResponse(mellomlagringActivities), }, }, + { + id: 'form-select-partial-v1', + type: 'json', + options: { + status: 200, + body: convertToInnsendingApiResponse(formSelectSoknadPartialV1), + }, + }, + { + id: 'form-select-complete-v1', + type: 'json', + options: { + status: 200, + body: convertToInnsendingApiResponse(formSelectSoknadCompleteV1), + }, + }, + { + id: 'form-select-invalid-country-v1', + type: 'json', + options: { + status: 200, + body: convertToInnsendingApiResponse(formSelectSoknadInvalidCountryV1), + }, + }, + { + id: 'form-select-invalid-instrument-v1', + type: 'json', + options: { + status: 200, + body: convertToInnsendingApiResponse(formSelectSoknadInvalidInstrumentV1), + }, + }, + { + id: 'nav083501-complete-v1', + type: 'json', + options: { + status: 200, + body: convertToInnsendingApiResponse(nav083591soknadComplete), + }, + }, { id: 'not-found', type: 'json', diff --git a/packages/fyllut/cypress/e2e/digital-submission/mellomlagring.cy.ts b/packages/fyllut/cypress/e2e/digital-submission/mellomlagring.cy.ts index ff121afdf..7ee52e091 100644 --- a/packages/fyllut/cypress/e2e/digital-submission/mellomlagring.cy.ts +++ b/packages/fyllut/cypress/e2e/digital-submission/mellomlagring.cy.ts @@ -333,6 +333,168 @@ describe('Mellomlagring', () => { cy.wait('@submitMellomlagring'); }); }); + + describe('When stored submission contains value which no longer is available in select', () => { + it('hides save-and-continue button and renders info message on summary page', () => { + cy.mocksUseRouteVariant('get-form:success-v2'); + + cy.visit( + '/fyllut/testmellomlagring/oppsummering?sub=digital&innsendingsId=8e3c3621-76d7-4ebd-90d4-34448ebcccc3&lang=nb-NO', + ); + cy.wait('@getMellomlagringValid'); + cy.findByText(/Alle steg som mangler informasjon er markert med/).should('exist'); + cy.findByRole('button', { name: TEXTS.grensesnitt.navigation.saveAndContinue }).should('not.exist'); + cy.findByRole('heading', { name: TEXTS.statiske.summaryPage.title }).should('exist'); + }); + }); + + describe('When form contains select components with dataSrc "values" and "url"', () => { + beforeEach(() => { + cy.intercept('GET', '/fyllut/api/send-inn/soknad/df6c8a69-9eb0-4878-b51f-38b3849ef9b6').as( + 'getMellomlagring', + ); + }); + + describe('it does not allow user to continue to sendinn application', () => { + it('when submission data is not complete', () => { + cy.mocksUseRouteVariant('get-soknad:form-select-partial-v1'); + + cy.visit( + '/fyllut/testselect/oppsummering?sub=digital&innsendingsId=df6c8a69-9eb0-4878-b51f-38b3849ef9b6&lang=nb-NO', + ); + cy.wait('@getMellomlagring'); + cy.get('dl') + .eq(0) + .within(() => { + cy.get('dt').should('have.length', 1); + cy.get('dt').eq(0).should('contain.text', 'Velg instrument'); + cy.get('dd').eq(0).should('contain.text', 'Piano'); + }); + cy.findByText(/Alle steg som mangler informasjon er markert med/).should('exist'); + cy.findByRole('button', { name: TEXTS.grensesnitt.navigation.saveAndContinue }).should('not.exist'); + cy.findByRole('heading', { name: TEXTS.statiske.summaryPage.title }).should('exist'); + }); + + it('when form-v2 does not allow value anymore', () => { + cy.mocksUseRouteVariant('get-form:success-v2'); + cy.mocksUseRouteVariant('get-soknad:form-select-invalid-instrument-v1'); + + cy.visit( + '/fyllut/testselect/oppsummering?sub=digital&innsendingsId=df6c8a69-9eb0-4878-b51f-38b3849ef9b6&lang=nb-NO', + ); + cy.wait('@getMellomlagring'); + cy.get('dl') + .eq(0) + .within(() => { + cy.get('dt').should('have.length', 3); + cy.get('dt').eq(0).should('contain.text', 'Velg instrument'); + cy.get('dd').eq(0).should('contain.text', 'Piano'); // <- invalid in form v2 + cy.get('dt').eq(1).should('contain.text', 'Velg land du vil reise til'); + cy.get('dd').eq(1).should('contain.text', 'Italia'); + cy.get('dt').eq(2).should('contain.text', 'Velg valuta du vil betale med'); + cy.get('dd').eq(2).should('contain.text', 'Euro (EUR)'); + }); + cy.findByText(/Alle steg som mangler informasjon er markert med/).should('exist'); + cy.findByRole('button', { name: TEXTS.grensesnitt.navigation.saveAndContinue }).should('not.exist'); + cy.findByRole('heading', { name: TEXTS.statiske.summaryPage.title }).should('exist'); + }); + }); + + describe('allows user to continue to sendinn application', () => { + it('when submission data is complete and valid', () => { + cy.mocksUseRouteVariant('get-soknad:form-select-complete-v1'); + + cy.intercept('PUT', '/fyllut/api/send-inn/utfyltsoknad', (req) => { + const { submission, attachments, ...rest } = req.body; + expect(submission.data.velgInstrument).to.deep.eq({ label: 'Piano', value: 'piano' }); + expect(submission.data.velgLand).to.deep.eq({ label: 'Italia', value: 'IT' }); + expect(submission.data.velgValutaDuVilBetaleMed).to.deep.eq({ label: 'Euro (EUR)', value: 'EUR' }); + expect(attachments).to.have.length(1); + expect(attachments[0].vedleggsnr).to.eq('P2'); + }).as('submitMellomlagring'); + + cy.visit( + '/fyllut/testselect/oppsummering?sub=digital&innsendingsId=df6c8a69-9eb0-4878-b51f-38b3849ef9b6&lang=nb-NO', + ); + cy.wait('@getMellomlagring'); + cy.findByRole('button', { name: /Veiledning/ }).should('exist'); + cy.get('dl') + .eq(0) + .within(() => { + cy.get('dt').should('have.length', 3); + cy.get('dt').eq(0).should('contain.text', 'Velg instrument'); + cy.get('dd').eq(0).should('contain.text', 'Piano'); + cy.get('dt').eq(1).should('contain.text', 'Velg land du vil reise til'); + cy.get('dd').eq(1).should('contain.text', 'Italia'); + cy.get('dt').eq(2).should('contain.text', 'Velg valuta du vil betale med'); + cy.get('dd').eq(2).should('contain.text', 'Euro (EUR)'); + }); + cy.findByRole('button', { name: TEXTS.grensesnitt.navigation.saveAndContinue }).should('exist'); + cy.findByText(/Alle steg som mangler informasjon er markert med/).should('not.exist'); + cy.findByRole('heading', { name: TEXTS.statiske.summaryPage.title }).should('exist'); + + cy.clickSaveAndContinue(); + cy.wait('@submitMellomlagring'); + }); + + it('even if submission data contains an invalid country', () => { + cy.mocksUseRouteVariant('get-soknad:form-select-invalid-country-v1'); + + cy.intercept('PUT', '/fyllut/api/send-inn/utfyltsoknad', (req) => { + const { submission, attachments } = req.body; + expect(submission.data.velgInstrument).to.deep.eq({ label: 'Piano', value: 'piano' }); + expect(submission.data.velgLand).to.deep.eq({ label: 'Invalid country', value: 'INVALID' }); + expect(submission.data.velgValutaDuVilBetaleMed).to.deep.eq({ label: 'Euro (EUR)', value: 'EUR' }); + expect(attachments).to.have.length(1); + expect(attachments[0].vedleggsnr).to.eq('P2'); + }).as('submitMellomlagring'); + + cy.visit( + '/fyllut/testselect/oppsummering?sub=digital&innsendingsId=df6c8a69-9eb0-4878-b51f-38b3849ef9b6&lang=nb-NO', + ); + cy.wait('@getMellomlagring'); + cy.get('dl') + .eq(0) + .within(() => { + cy.get('dt').should('have.length', 3); + cy.get('dt').eq(0).should('contain.text', 'Velg instrument'); + cy.get('dd').eq(0).should('contain.text', 'Piano'); + cy.get('dt').eq(1).should('contain.text', 'Velg land du vil reise til'); + cy.get('dd').eq(1).should('contain.text', 'Invalid country'); // <- invalid (dataSrc=url) + cy.get('dt').eq(2).should('contain.text', 'Velg valuta du vil betale med'); + cy.get('dd').eq(2).should('contain.text', 'Euro (EUR)'); + }); + cy.findByRole('button', { name: TEXTS.grensesnitt.navigation.saveAndContinue }).should('exist'); + cy.findByText(/Alle steg som mangler informasjon er markert med/).should('not.exist'); + cy.findByRole('heading', { name: TEXTS.statiske.summaryPage.title }).should('exist'); + + cy.clickSaveAndContinue(); + cy.wait('@submitMellomlagring'); + }); + }); + }); + + it('Allows user to submit complete submission', () => { + cy.mocksUseRouteVariant('get-soknad:nav083501-complete-v1'); + cy.intercept('PUT', '/fyllut/api/send-inn/utfyltsoknad', (req) => { + const { submission, attachments } = req.body; + expect(submission.data.landvelger).to.deep.eq({ label: 'Frankrike', value: 'FR' }); + expect(attachments).to.have.length(2); + expect(attachments[0].label).to.eq('Personinntektsskjema'); + expect(attachments[1].label).to.eq('Resultatregnskap'); + }).as('submitMellomlagring'); + cy.intercept('GET', '/fyllut/api/send-inn/soknad/2db25aab-3524-4426-a333-489542bf16bf').as('getMellomlagring'); + + cy.visit( + '/fyllut/nav083501/oppsummering?sub=digital&innsendingsId=2db25aab-3524-4426-a333-489542bf16bf&lang=nb-NO', + ); + cy.wait('@getMellomlagring'); + cy.findByRole('button', { name: TEXTS.grensesnitt.navigation.saveAndContinue }).should('exist'); + cy.findByText(/Alle steg som mangler informasjon er markert med/).should('not.exist'); + cy.findByRole('heading', { name: TEXTS.statiske.summaryPage.title }).should('exist'); + cy.clickSaveAndContinue(); + cy.wait('@submitMellomlagring'); + }); }); }); }); diff --git a/packages/shared-components/src/components/summary/navigation/SummaryPageNavigation.test.tsx b/packages/shared-components/src/components/summary/navigation/SummaryPageNavigation.test.tsx index ef136b57c..f8d64690d 100644 --- a/packages/shared-components/src/components/summary/navigation/SummaryPageNavigation.test.tsx +++ b/packages/shared-components/src/components/summary/navigation/SummaryPageNavigation.test.tsx @@ -7,6 +7,7 @@ import { defaultFormWithAttachment } from '../../../../test/test-data/form/data' import { Buttons, formWithProperties, getButtons } from '../../../../test/util/helpers'; import { AppConfigContextType, AppConfigProvider } from '../../../context/config/configContext'; import { SendInnProvider } from '../../../context/sendInn/sendInnContext'; +import { PanelValidation } from '../../../util/form/panel-validation/panelValidation'; import SummaryPageNavigation, { Props } from './SummaryPageNavigation'; vi.mock('react-router-dom', async () => { @@ -32,6 +33,7 @@ const renderSummaryPageNavigation = async ( const summaryPageProps: Props = { formUrl: '/testform', submission: { data: {} }, + panelValidationList: [], form: {} as NavFormType, isValid, onError, @@ -215,37 +217,72 @@ describe('SummaryPageNavigation', () => { }); describe('Submission method', () => { - it('renders next-button when method=digital', async () => { - const basePath = 'https://www.unittest.nav.no/fyllut'; - const sendInnUrl = 'https://www.unittest.nav.no/sendInn'; - const windowLocation = { href: basePath }; - // @ts-ignore - Object.defineProperty(window, 'location', { - value: windowLocation, - writable: true, - }); - nock(basePath) - .defaultReplyHeaders({ - Location: sendInnUrl, - }) - .post('/api/send-inn') - .reply(201, {}, { Location: 'https://www.unittest.nav.no/send-inn/123' }); - const form = formWithProperties({ innsending: 'PAPIR_OG_DIGITAL' }); - const { buttons } = await renderSummaryPageNavigation( - { form }, - { - submissionMethod: 'digital', - baseUrl: basePath, - }, - ); - expectKnapperForRedigerSvarEllerSendTilNav(buttons); - await userEvent.click(buttons.sendTilNavKnapp); - await userEvent.click(screen.getByRole('button', { name: TEXTS.grensesnitt.submitToNavPrompt.confirm })); + describe('method=digital', () => { + it('renders next-button when no validation errors', async () => { + const basePath = 'https://www.unittest.nav.no/fyllut'; + const sendInnUrl = 'https://www.unittest.nav.no/sendInn'; + const windowLocation = { href: basePath }; + // @ts-ignore + Object.defineProperty(window, 'location', { + value: windowLocation, + writable: true, + }); + nock(basePath) + .defaultReplyHeaders({ + Location: sendInnUrl, + }) + .post('/api/send-inn') + .reply(201, {}, { Location: 'https://www.unittest.nav.no/send-inn/123' }); + const form = formWithProperties({ innsending: 'PAPIR_OG_DIGITAL' }); + const { buttons } = await renderSummaryPageNavigation( + { + form, + panelValidationList: [], + }, + { + submissionMethod: 'digital', + baseUrl: basePath, + }, + ); + expectKnapperForRedigerSvarEllerSendTilNav(buttons); + await userEvent.click(buttons.sendTilNavKnapp); + await userEvent.click(screen.getByRole('button', { name: TEXTS.grensesnitt.submitToNavPrompt.confirm })); - await waitFor(() => expect(windowLocation.href).toBe('https://www.unittest.nav.no/send-inn/123')); - nock.isDone(); + await waitFor(() => expect(windowLocation.href).toBe('https://www.unittest.nav.no/send-inn/123')); + nock.isDone(); - window.location = originalWindowLocation; + window.location = originalWindowLocation; + }); + it('hides next-button if validation of soknad is not complete', async () => { + const form = formWithProperties({ innsending: 'PAPIR_OG_DIGITAL' }); + const { buttons } = await renderSummaryPageNavigation( + { + form, + panelValidationList: undefined, + }, + { + submissionMethod: 'digital', + }, + ); + expect(buttons.redigerSvarKnapp).toBeDefined(); + expect(buttons.sendTilNavKnapp).toBeNull(); + expect(buttons.gaVidereKnapp).toBeNull(); + }); + it('hides next-button if validation of soknad contains validation errors', async () => { + const form = formWithProperties({ innsending: 'PAPIR_OG_DIGITAL' }); + const { buttons } = await renderSummaryPageNavigation( + { + form, + panelValidationList: [{ hasValidationErrors: true } as PanelValidation], + }, + { + submissionMethod: 'digital', + }, + ); + expect(buttons.redigerSvarKnapp).toBeDefined(); + expect(buttons.sendTilNavKnapp).toBeNull(); + expect(buttons.gaVidereKnapp).toBeNull(); + }); }); it('renders next-button when method=paper', async () => { const form = formWithProperties({ innsending: 'PAPIR_OG_DIGITAL' }); diff --git a/packages/shared-components/src/components/summary/navigation/SummaryPageNavigation.tsx b/packages/shared-components/src/components/summary/navigation/SummaryPageNavigation.tsx index 20f36ff2c..534bfc024 100644 --- a/packages/shared-components/src/components/summary/navigation/SummaryPageNavigation.tsx +++ b/packages/shared-components/src/components/summary/navigation/SummaryPageNavigation.tsx @@ -45,7 +45,8 @@ const SummaryPageNavigation = ({ form, submission, formUrl, panelValidationList, const innsending: InnsendingType = form.properties.innsending || 'PAPIR_OG_DIGITAL'; const styles = useStyles(); const hasAttachments = hasRelevantAttachments(form, submission?.data ?? {}); - const canSubmit = (panelValidationList ?? []).every((panelValidation) => !panelValidation.hasValidationErrors); + const canSubmit = + !!panelValidationList && panelValidationList.every((panelValidation) => !panelValidation.hasValidationErrors); const exitUrl = urlUtils.getExitUrl(window.location.href); diff --git a/packages/shared-components/src/formio/components/base/index.d.ts b/packages/shared-components/src/formio/components/base/index.d.ts index 64b529d5a..cde23239c 100644 --- a/packages/shared-components/src/formio/components/base/index.d.ts +++ b/packages/shared-components/src/formio/components/base/index.d.ts @@ -13,6 +13,7 @@ interface ReactComponentType { shouldSetValue?: any; dataForSetting?: any; reactInstance?: HTMLInputElement | Select; + dataReady: Promise; attachReact(element, ref): any; detachReact(element): any; validate(data, dirty, rowData): boolean; @@ -42,7 +43,8 @@ interface ReactComponentType { message: string; } | null; builderMode: boolean; - init(): any; + validators: any[]; + init(options?: {}): any; redraw(): any; attach(element: any): any; detach(): void; diff --git a/packages/shared-components/src/formio/components/core/select/Select.tsx b/packages/shared-components/src/formio/components/core/select/Select.tsx index 5595ef379..788682b61 100644 --- a/packages/shared-components/src/formio/components/core/select/Select.tsx +++ b/packages/shared-components/src/formio/components/core/select/Select.tsx @@ -1,4 +1,5 @@ import { TEXTS } from '@navikt/skjemadigitalisering-shared-domain'; +import { Utils } from 'formiojs'; import { useEffect, useRef, useState } from 'react'; import ReactSelect, { OnChangeValue, components } from 'react-select'; import Select from 'react-select/base'; @@ -93,6 +94,8 @@ const ReactSelectWrapper = ({ ); }; +type SelectInitOptions = { skipOnlyAvailableItems?: boolean }; + /** * TODO: Rename this to Select and dont use wrapper when we change to Aksel component. */ @@ -100,6 +103,8 @@ class NavSelect extends BaseComponent { isLoading = false; loadFinished = false; selectOptions: any = []; + itemsLoaded: Promise | undefined = undefined; + itemsLoadedResolve: undefined | ((value?: any) => void) = undefined; static schema() { return BaseComponent.schema({ @@ -107,6 +112,10 @@ class NavSelect extends BaseComponent { type: 'navSelect', key: 'navSelect', dataSrc: 'values', + validate: { + required: true, + onlyAvailableItems: true, + }, }); } @@ -136,11 +145,15 @@ class NavSelect extends BaseComponent { } } - renderReact(element) { + loadItems() { const component = this.component!; if (component.dataSrc === 'values') { this.selectOptions = component.data?.values ?? []; } else if (component.dataSrc === 'url' && !this.isLoading && !this.loadFinished) { + this.itemsLoadedResolve?.(); + this.itemsLoaded = new Promise((resolve) => { + this.itemsLoadedResolve = resolve; + }); const dataUrl = component.data.url; this.isLoading = true; http @@ -163,10 +176,46 @@ class NavSelect extends BaseComponent { .finally(() => { this.isLoading = false; this.loadFinished = true; + this.itemsLoadedResolve?.(); this.rerender(); }); } + } + + init(options: SelectInitOptions = {}) { + super.init(); + const { skipOnlyAvailableItems = false } = options; + this.validators = this.validators.concat(skipOnlyAvailableItems ? [] : ['onlyAvailableItems']); + this.loadItems(); + } + + get dataReady(): Promise { + return this.itemsLoaded || Promise.resolve(); + } + get ready() { + return this.dataReady.then(() => this); + } + + /** + * Denne funksjonen kalles fra formio sin valideringskode når validator 'onlyAvailableItems' er aktivert. + * + * @param setting Komponent-egenskap 'validate.onlyAvailableItems' + * @param value Verdi som skal valideres + */ + validateValueAvailability(setting, value) { + if (!Utils.boolValue(setting) || !value) { + return true; + } + const options = this.selectOptions; + if (options) { + return !!options.find((option) => option.value === value.value); + } + return false; + } + + renderReact(element) { + const component = this.component!; return element.render(