{"type":"process_package","version":"1","process":{"id":69,"process_category_id":"10","user_id":1,"description":"Example Process for uploading Excel spreadsheet records into an existing Collection","name":"Excel Spreadsheet Records to Collection Records Example","cancel_screen_id":null,"request_detail_screen_id":null,"status":"ACTIVE","is_valid":1,"package_key":null,"pause_timer_start":0,"deleted_at":null,"created_at":"2020-09-21T22:38:06+00:00","updated_at":"2020-09-23T15:31:37+00:00","start_events":[{"id":"node_1","name":"Start Event","config":"{\"web_entry\":{\"require_valid_session\":false,\"mode\":\"DISABLED\",\"screen_id\":null,\"completed_action\":\"SCREEN\",\"completed_screen_id\":null,\"completed_url\":null,\"authenticatable_type\":\"ProcessMaker\\\\Models\\\\User\",\"authenticatable_id\":1,\"enable_query_params\":false,\"password\":null,\"enable_password_protect\":false,\"exclude_data\":[]}}","assignment":"user","assignedUsers":"1","ownerProcessId":"ProcessId","eventDefinitions":[],"ownerProcessName":"ProcessName","allowInterstitial":"false"}],"warnings":null,"self_service_tasks":[],"signal_events":[],"has_timer_start_events":false,"notifications":{"requester":{"started":false,"canceled":false,"completed":false},"assignee":{"started":false,"canceled":false,"completed":false},"participants":{"started":false,"canceled":false,"completed":false}},"task_notifications":{},"bpmn":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<bpmn:definitions xmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\" xmlns:bpmn=\"http:\/\/www.omg.org\/spec\/BPMN\/20100524\/MODEL\" xmlns:bpmndi=\"http:\/\/www.omg.org\/spec\/BPMN\/20100524\/DI\" xmlns:dc=\"http:\/\/www.omg.org\/spec\/DD\/20100524\/DC\" xmlns:di=\"http:\/\/www.omg.org\/spec\/DD\/20100524\/DI\" xmlns:pm=\"http:\/\/processmaker.com\/BPMN\/2.0\/Schema.xsd\" xmlns:tns=\"http:\/\/sourceforge.net\/bpmn\/definitions\/_1530553328908\" xmlns:xsd=\"http:\/\/www.w3.org\/2001\/XMLSchema\" targetNamespace=\"http:\/\/bpmn.io\/schema\/bpmn\" exporter=\"ProcessMaker Modeler\" exporterVersion=\"1.0\" xsi:schemaLocation=\"http:\/\/www.omg.org\/spec\/BPMN\/20100524\/MODEL http:\/\/bpmn.sourceforge.net\/schemas\/BPMN20.xsd\">\n  <bpmn:process id=\"ProcessId\" name=\"ProcessName\" isExecutable=\"true\">\n    <bpmn:startEvent id=\"node_1\" name=\"Start Event\" pm:allowInterstitial=\"false\" pm:config=\"{&quot;web_entry&quot;:{&quot;require_valid_session&quot;:false,&quot;mode&quot;:&quot;DISABLED&quot;,&quot;screen_id&quot;:null,&quot;completed_action&quot;:&quot;SCREEN&quot;,&quot;completed_screen_id&quot;:null,&quot;completed_url&quot;:null,&quot;authenticatable_type&quot;:&quot;ProcessMaker\\\\Models\\\\User&quot;,&quot;authenticatable_id&quot;:1,&quot;enable_query_params&quot;:false,&quot;password&quot;:null,&quot;enable_password_protect&quot;:false,&quot;exclude_data&quot;:[]}}\">\n      <bpmn:outgoing>node_9<\/bpmn:outgoing>\n    <\/bpmn:startEvent>\n    <bpmn:scriptTask id=\"node_4\" name=\"Process File\" pm:config=\"{&#10;    &quot;fileVariableName&quot;: &quot;recordsFile&quot;,&#10;    &quot;recordsVariableName&quot;: &quot;persons&quot;&#10;}\" pm:scriptRef=\"58\">\n      <bpmn:incoming>node_10<\/bpmn:incoming>\n      <bpmn:outgoing>node_11<\/bpmn:outgoing>\n    <\/bpmn:scriptTask>\n    <bpmn:scriptTask id=\"node_5\" name=\"Save to Collection\" pm:config=\"{&#10;    &quot;recordsVariableName&quot;: &quot;persons&quot;,&#10;    &quot;collectionId&quot;: 18&#10;}\" pm:scriptRef=\"59\">\n      <bpmn:incoming>node_12<\/bpmn:incoming>\n      <bpmn:outgoing>node_13<\/bpmn:outgoing>\n    <\/bpmn:scriptTask>\n    <bpmn:task id=\"node_6\" name=\"Upload File\" pm:screenRef=\"222\" pm:allowInterstitial=\"true\" pm:interstitialScreenRef=\"220\" pm:assignmentLock=\"false\" pm:allowReassignment=\"false\" pm:config=\"{&quot;web_entry&quot;:{&quot;require_valid_session&quot;:false,&quot;mode&quot;:&quot;DISABLED&quot;,&quot;screen_id&quot;:null,&quot;completed_action&quot;:&quot;SCREEN&quot;,&quot;completed_screen_id&quot;:null,&quot;completed_url&quot;:null,&quot;authenticatable_type&quot;:&quot;ProcessMaker\\\\Models\\\\User&quot;,&quot;authenticatable_id&quot;:1,&quot;enable_query_params&quot;:false,&quot;password&quot;:null,&quot;enable_password_protect&quot;:false,&quot;exclude_data&quot;:[]},&quot;reactions&quot;:false,&quot;voting&quot;:false,&quot;edit_comments&quot;:false,&quot;remove_comments&quot;:false,&quot;email_notifications&quot;:{&quot;notifications&quot;:[]}}\">\n      <bpmn:incoming>node_9<\/bpmn:incoming>\n      <bpmn:incoming>node_15<\/bpmn:incoming>\n      <bpmn:outgoing>node_10<\/bpmn:outgoing>\n    <\/bpmn:task>\n    <bpmn:task id=\"node_7\" name=\"Review Upload\" pm:screenRef=\"223\" pm:allowInterstitial=\"true\" pm:interstitialScreenRef=\"220\" pm:assignmentLock=\"false\" pm:allowReassignment=\"false\" pm:config=\"{&quot;web_entry&quot;:{&quot;require_valid_session&quot;:false,&quot;mode&quot;:&quot;DISABLED&quot;,&quot;screen_id&quot;:null,&quot;completed_action&quot;:&quot;SCREEN&quot;,&quot;completed_screen_id&quot;:null,&quot;completed_url&quot;:null,&quot;authenticatable_type&quot;:&quot;ProcessMaker\\\\Models\\\\User&quot;,&quot;authenticatable_id&quot;:1,&quot;enable_query_params&quot;:false,&quot;password&quot;:null,&quot;enable_password_protect&quot;:false,&quot;exclude_data&quot;:[]},&quot;reactions&quot;:false,&quot;voting&quot;:false,&quot;edit_comments&quot;:false,&quot;remove_comments&quot;:false,&quot;email_notifications&quot;:{&quot;notifications&quot;:[]}}\">\n      <bpmn:incoming>node_11<\/bpmn:incoming>\n      <bpmn:outgoing>node_3<\/bpmn:outgoing>\n    <\/bpmn:task>\n    <bpmn:endEvent id=\"node_8\" name=\"End Event\">\n      <bpmn:incoming>node_13<\/bpmn:incoming>\n    <\/bpmn:endEvent>\n    <bpmn:sequenceFlow id=\"node_9\" name=\"\" sourceRef=\"node_1\" targetRef=\"node_6\"\/>\n    <bpmn:sequenceFlow id=\"node_10\" name=\"\" sourceRef=\"node_6\" targetRef=\"node_4\"\/>\n    <bpmn:sequenceFlow id=\"node_11\" name=\"\" sourceRef=\"node_4\" targetRef=\"node_7\"\/>\n    <bpmn:sequenceFlow id=\"node_13\" name=\"\" sourceRef=\"node_5\" targetRef=\"node_8\"\/>\n    <bpmn:exclusiveGateway id=\"node_2\" name=\"Upload OK?\">\n      <bpmn:incoming>node_3<\/bpmn:incoming>\n      <bpmn:outgoing>node_12<\/bpmn:outgoing>\n      <bpmn:outgoing>node_15<\/bpmn:outgoing>\n    <\/bpmn:exclusiveGateway>\n    <bpmn:sequenceFlow id=\"node_3\" name=\"\" sourceRef=\"node_7\" targetRef=\"node_2\"\/>\n    <bpmn:sequenceFlow id=\"node_12\" name=\"Save\" sourceRef=\"node_2\" targetRef=\"node_5\">\n      <bpmn:conditionExpression xsi:type=\"bpmn:tFormalExpression\">requestStatus == \"save\"<\/bpmn:conditionExpression>\n    <\/bpmn:sequenceFlow>\n    <bpmn:sequenceFlow id=\"node_15\" name=\"Reupload \" sourceRef=\"node_2\" targetRef=\"node_6\">\n      <bpmn:conditionExpression xsi:type=\"bpmn:tFormalExpression\">requestStatus == \"reupload\"<\/bpmn:conditionExpression>\n    <\/bpmn:sequenceFlow>\n  <\/bpmn:process>\n  <bpmndi:BPMNDiagram id=\"BPMNDiagramId\">\n    <bpmndi:BPMNPlane id=\"BPMNPlaneId\" bpmnElement=\"ProcessId\">\n      <bpmndi:BPMNShape id=\"node_1_di\" bpmnElement=\"node_1\">\n        <dc:Bounds x=\"100\" y=\"180\" width=\"36\" height=\"36\"\/>\n      <\/bpmndi:BPMNShape>\n      <bpmndi:BPMNShape id=\"node_4_di\" bpmnElement=\"node_4\">\n        <dc:Bounds x=\"376\" y=\"160\" width=\"116\" height=\"76\"\/>\n      <\/bpmndi:BPMNShape>\n      <bpmndi:BPMNShape id=\"node_5_di\" bpmnElement=\"node_5\">\n        <dc:Bounds x=\"820\" y=\"160\" width=\"116\" height=\"76\"\/>\n      <\/bpmndi:BPMNShape>\n      <bpmndi:BPMNShape id=\"node_6_di\" bpmnElement=\"node_6\">\n        <dc:Bounds x=\"200\" y=\"160\" width=\"116\" height=\"76\"\/>\n      <\/bpmndi:BPMNShape>\n      <bpmndi:BPMNShape id=\"node_7_di\" bpmnElement=\"node_7\">\n        <dc:Bounds x=\"550\" y=\"160\" width=\"116\" height=\"76\"\/>\n      <\/bpmndi:BPMNShape>\n      <bpmndi:BPMNShape id=\"node_8_di\" bpmnElement=\"node_8\">\n        <dc:Bounds x=\"970\" y=\"180\" width=\"36\" height=\"36\"\/>\n      <\/bpmndi:BPMNShape>\n      <bpmndi:BPMNEdge id=\"node_9_di\" bpmnElement=\"node_9\">\n        <di:waypoint x=\"118\" y=\"198\"\/>\n        <di:waypoint x=\"258\" y=\"198\"\/>\n      <\/bpmndi:BPMNEdge>\n      <bpmndi:BPMNEdge id=\"node_10_di\" bpmnElement=\"node_10\">\n        <di:waypoint x=\"258\" y=\"198\"\/>\n        <di:waypoint x=\"434\" y=\"198\"\/>\n      <\/bpmndi:BPMNEdge>\n      <bpmndi:BPMNEdge id=\"node_11_di\" bpmnElement=\"node_11\">\n        <di:waypoint x=\"434\" y=\"198\"\/>\n        <di:waypoint x=\"608\" y=\"198\"\/>\n      <\/bpmndi:BPMNEdge>\n      <bpmndi:BPMNEdge id=\"node_13_di\" bpmnElement=\"node_13\">\n        <di:waypoint x=\"878\" y=\"198\"\/>\n        <di:waypoint x=\"988\" y=\"198\"\/>\n      <\/bpmndi:BPMNEdge>\n      <bpmndi:BPMNShape id=\"node_2_di\" bpmnElement=\"node_2\">\n        <dc:Bounds x=\"730\" y=\"180\" width=\"36\" height=\"36\"\/>\n      <\/bpmndi:BPMNShape>\n      <bpmndi:BPMNEdge id=\"node_3_di\" bpmnElement=\"node_3\">\n        <di:waypoint x=\"608\" y=\"198\"\/>\n        <di:waypoint x=\"748\" y=\"198\"\/>\n      <\/bpmndi:BPMNEdge>\n      <bpmndi:BPMNEdge id=\"node_12_di\" bpmnElement=\"node_12\">\n        <di:waypoint x=\"748\" y=\"198\"\/>\n        <di:waypoint x=\"878\" y=\"198\"\/>\n      <\/bpmndi:BPMNEdge>\n      <bpmndi:BPMNEdge id=\"node_15_di\" bpmnElement=\"node_15\">\n        <di:waypoint x=\"748\" y=\"198\"\/>\n        <di:waypoint x=\"748\" y=\"300\"\/>\n        <di:waypoint x=\"258\" y=\"300\"\/>\n        <di:waypoint x=\"258\" y=\"198\"\/>\n      <\/bpmndi:BPMNEdge>\n    <\/bpmndi:BPMNPlane>\n  <\/bpmndi:BPMNDiagram>\n<\/bpmn:definitions>\n"},"process_categories":[{"id":10,"name":"Other","status":"ACTIVE","is_system":0,"created_at":"2019-10-02T19:52:15+00:00","updated_at":"2020-09-23T15:28:26+00:00","pivot":{"assignable_id":69,"category_id":10,"category_type":"ProcessMaker\\Models\\ProcessCategory"}}],"screens":[{"id":220,"screen_category_id":"12","title":"Loading 2","description":"test","type":"DISPLAY","config":[{"name":"Loading","items":[{"items":[[],[{"label":"Rich Text","config":{"icon":"fas fa-pencil-ruler","label":null,"content":"<div class=\"spinner-border text-primary\" style=\"height: 100px; width: 100px;\">&nbsp;<\/div>","interactive":true,"renderVarHtml":null},"component":"FormHtmlViewer","inspector":[{"type":"FormTextArea","field":"content","config":{"rows":5,"label":"Content","value":null,"helper":"The HTML text to display"}},{"type":"FormCheckbox","field":"renderVarHtml","config":{"label":"Render HTML from a Variable","value":null,"helper":null}},{"type":"FormInput","field":"conditionalHide","config":{"label":"Visibility Rule","helper":"This control is hidden until this expression is true"}},{"type":"FormInput","field":"customCssSelector","config":{"label":"CSS Selector Name","helper":"Use this in your custom css rules","validation":"regex: [-?[_a-zA-Z]+[_-a-zA-Z0-9]*]"}}],"editor-control":"FormHtmlEditor","editor-component":"FormHtmlEditor"}],[]],"label":"Multicolumn \/ Table","config":{"icon":"fas fa-table","label":null,"options":[{"value":"1","content":"4"},{"value":"2","content":"4"},{"value":"2","content":"4"}]},"component":"FormMultiColumn","container":true,"inspector":[{"type":"ContainerColumns","field":"options","config":{"label":"Column Width","helper":null,"validation":"columns-adds-to-12"}},{"type":"ColorSelect","field":"color","config":{"label":"Text Color","helper":"Set the element's text color","options":[{"value":"text-primary","content":"primary"},{"value":"text-secondary","content":"secondary"},{"value":"text-success","content":"success"},{"value":"text-danger","content":"danger"},{"value":"text-warning","content":"warning"},{"value":"text-info","content":"info"},{"value":"text-light","content":"light"},{"value":"text-dark","content":"dark"}]}},{"type":"ColorSelect","field":"bgcolor","config":{"label":"Background Color","helper":"Set the element's background color","options":[{"value":"alert alert-primary","content":"primary"},{"value":"alert alert-secondary","content":"secondary"},{"value":"alert alert-success","content":"success"},{"value":"alert alert-danger","content":"danger"},{"value":"alert alert-warning","content":"warning"},{"value":"alert alert-info","content":"info"},{"value":"alert alert-light","content":"light"},{"value":"alert alert-dark","content":"dark"}]}},{"type":"FormInput","field":"conditionalHide","config":{"label":"Visibility Rule","helper":"This control is hidden until this expression is true"}},{"type":"FormInput","field":"customCssSelector","config":{"label":"CSS Selector Name","helper":"Use this in your custom css rules","validation":"regex: [-?[_a-zA-Z]+[_-a-zA-Z0-9]*]"}}],"editor-control":"FormMultiColumn","editor-component":"MultiColumn"}]}],"computed":[],"custom_css":null,"created_at":"2020-07-10T20:37:56+00:00","updated_at":"2020-09-23T15:28:26+00:00","status":"ACTIVE","key":null,"watchers":null,"categories":[{"id":12,"name":"Base Forms","status":"ACTIVE","is_system":0,"created_at":"2020-03-05T16:29:42+00:00","updated_at":"2020-07-10T20:30:27+00:00","pivot":{"assignable_id":220,"category_id":12,"category_type":"ProcessMaker\\Models\\ScreenCategory"}}]},{"id":221,"screen_category_id":"21","title":"Add or Edit Person","description":"Person create or edit form","type":"FORM","config":[{"name":"Add or Edit Person","items":[{"items":[[{"label":"Line Input","config":{"icon":"far fa-square","name":"firstName","type":"text","label":"First Name","helper":null,"readonly":false,"dataFormat":"string","validation":[],"placeholder":null},"component":"FormInput","inspector":[{"type":"FormInput","field":"name","config":{"name":"Variable Name","label":"Variable Name","helper":"A variable name is a symbolic name to reference information.","validation":"regex:\/^(?:[A-Z_.a-z])(?:[0-9A-Z_.a-z])*$\/|required"}},{"type":"FormInput","field":"label","config":{"label":"Label","helper":"The label describes the field's name"}},{"type":"FormMultiselect","field":"dataFormat","config":{"name":"Data Type","label":"Data Type","helper":"The data type specifies what kind of data is stored in the variable.","options":[{"value":"string","content":"Text"},{"value":"int","content":"Integer"},{"value":"currency","content":"Currency"},{"value":"percentage","content":"Percentage"},{"value":"float","content":"Decimal"},{"value":"datetime","content":"Datetime"},{"value":"date","content":"Date"},{"value":"password","content":"Password"}],"validation":"required"}},{"type":{"extends":{"props":["label","error","options","helper","name","value","selectedControl"],"mixins":[{"props":["validation","validationData","validationField","validationMessages"],"watch":{"validationData":{"deep":true}},"methods":[]}],"methods":[],"computed":[],"_compiled":true,"components":{"Multiselect":{"name":"vue-multiselect","props":{"name":{"default":null},"limit":{"default":99999},"loading":{"default":false},"disabled":{"default":false},"tabindex":{"default":0},"limitText":[],"maxHeight":{"default":300},"showLabels":{"default":true},"selectLabel":{"default":"Press enter to select"},"deselectLabel":{"default":"Press enter to remove"},"openDirection":{"default":null},"selectedLabel":{"default":"Selected"},"showNoOptions":{"default":true},"showNoResults":{"default":true},"selectGroupLabel":{"default":"Press enter to select group"},"deselectGroupLabel":{"default":"Press enter to deselect group"}},"mixins":[{"props":{"id":{"default":null},"max":{"type":[null,null],"default":false},"label":[],"value":{"type":null},"options":{"required":true},"trackBy":[],"multiple":{"default":false},"taggable":{"default":false},"blockKeys":[],"allowEmpty":{"default":true},"groupLabel":[],"resetAfter":{"default":false},"searchable":{"default":true},"customLabel":[],"groupSelect":{"default":false},"groupValues":[],"placeholder":{"default":"Select option"},"tagPosition":{"default":"top"},"hideSelected":{"default":false},"optionsLimit":{"default":1000},"clearOnSelect":{"default":true},"closeOnSelect":{"default":true},"internalSearch":{"default":true},"preselectFirst":{"default":false},"preserveSearch":{"default":false},"tagPlaceholder":{"default":"Press enter to create a tag"}},"watch":[],"methods":[],"computed":[]},{"props":{"showPointer":{"default":true},"optionHeight":{"default":40}},"watch":[],"methods":[],"computed":[]}],"computed":[],"_compiled":true,"beforeCreate":[null],"staticRenderFns":[]}},"inheritAttrs":false,"staticRenderFns":[]},"computed":[],"_compiled":true,"staticRenderFns":[]},"field":"dataMask","config":{"name":"Data Format","label":"Data Format","helper":"The data format for the selected type."}},{"type":"ValidationSelect","field":"validation","config":{"label":"Validation Rules","helper":"The validation rules needed for this field"}},{"type":"FormInput","field":"placeholder","config":{"label":"Placeholder Text","helper":"The placeholder is what is shown in the field when no value is provided yet"}},{"type":"FormInput","field":"helper","config":{"label":"Helper Text","helper":"Help text is meant to provide additional guidance on the field's value"}},{"type":"FormCheckbox","field":"readonly","config":{"label":"Read Only","helper":null}},{"type":"ColorSelect","field":"color","config":{"label":"Text Color","helper":"Set the element's text color","options":[{"value":"text-primary","content":"primary"},{"value":"text-secondary","content":"secondary"},{"value":"text-success","content":"success"},{"value":"text-danger","content":"danger"},{"value":"text-warning","content":"warning"},{"value":"text-info","content":"info"},{"value":"text-light","content":"light"},{"value":"text-dark","content":"dark"}]}},{"type":"ColorSelect","field":"bgcolor","config":{"label":"Background Color","helper":"Set the element's background color","options":[{"value":"alert alert-primary","content":"primary"},{"value":"alert alert-secondary","content":"secondary"},{"value":"alert alert-success","content":"success"},{"value":"alert alert-danger","content":"danger"},{"value":"alert alert-warning","content":"warning"},{"value":"alert alert-info","content":"info"},{"value":"alert alert-light","content":"light"},{"value":"alert alert-dark","content":"dark"}]}},{"type":{"props":["value"],"watch":{"value":{"immediate":true}},"methods":[],"_scopeId":"data-v-67152bf8","computed":{"effectiveValue":[]},"_compiled":true,"components":{"MonacoEditor":{"name":"MonacoEditor","model":{"event":"change"},"props":{"theme":{"default":"vs"},"amdRequire":[]},"watch":{"options":{"deep":true}},"methods":[]}},"staticRenderFns":[]},"field":"defaultValue","config":{"label":"Default Value","helper":"Takes precedence over value set in data."}},{"type":"FormInput","field":"conditionalHide","config":{"label":"Visibility Rule","helper":"This control is hidden until this expression is true"}},{"type":"FormInput","field":"customCssSelector","config":{"label":"CSS Selector Name","helper":"Use this in your custom css rules","validation":"regex: [-?[_a-zA-Z]+[_-a-zA-Z0-9]*]"}}],"editor-control":"FormInput","editor-component":"FormInput"}],[{"label":"Line Input","config":{"icon":"far fa-square","name":"lastName","type":"text","label":"Last Name","helper":null,"readonly":false,"dataFormat":"string","validation":[],"placeholder":null},"component":"FormInput","inspector":[{"type":"FormInput","field":"name","config":{"name":"Variable Name","label":"Variable Name","helper":"A variable name is a symbolic name to reference information.","validation":"regex:\/^(?:[A-Z_.a-z])(?:[0-9A-Z_.a-z])*$\/|required"}},{"type":"FormInput","field":"label","config":{"label":"Label","helper":"The label describes the field's name"}},{"type":"FormMultiselect","field":"dataFormat","config":{"name":"Data Type","label":"Data Type","helper":"The data type specifies what kind of data is stored in the variable.","options":[{"value":"string","content":"Text"},{"value":"int","content":"Integer"},{"value":"currency","content":"Currency"},{"value":"percentage","content":"Percentage"},{"value":"float","content":"Decimal"},{"value":"datetime","content":"Datetime"},{"value":"date","content":"Date"},{"value":"password","content":"Password"}],"validation":"required"}},{"type":{"extends":{"props":["label","error","options","helper","name","value","selectedControl"],"mixins":[{"props":{"validation":{"type":null},"validationData":{"type":null},"validationField":{"type":null},"validationMessages":{"type":null}},"watch":{"validationData":{"deep":true,"user":true}},"methods":[]}],"methods":[],"computed":[],"_compiled":true,"components":{"Multiselect":{"name":"vue-multiselect","props":{"name":{"default":null},"limit":{"default":99999},"loading":{"default":false},"disabled":{"default":false},"tabindex":{"default":0},"limitText":[],"maxHeight":{"default":300},"showLabels":{"default":true},"selectLabel":{"default":"Press enter to select"},"deselectLabel":{"default":"Press enter to remove"},"openDirection":{"default":null},"selectedLabel":{"default":"Selected"},"showNoOptions":{"default":true},"showNoResults":{"default":true},"selectGroupLabel":{"default":"Press enter to select group"},"deselectGroupLabel":{"default":"Press enter to deselect group"}},"mixins":[{"props":{"id":{"default":null},"max":{"type":[null,null],"default":false},"label":[],"value":{"type":null},"options":{"required":true},"trackBy":[],"multiple":{"default":false},"taggable":{"default":false},"blockKeys":[],"allowEmpty":{"default":true},"groupLabel":[],"resetAfter":{"default":false},"searchable":{"default":true},"customLabel":[],"groupSelect":{"default":false},"groupValues":[],"placeholder":{"default":"Select option"},"tagPosition":{"default":"top"},"hideSelected":{"default":false},"optionsLimit":{"default":1000},"clearOnSelect":{"default":true},"closeOnSelect":{"default":true},"internalSearch":{"default":true},"preselectFirst":{"default":false},"preserveSearch":{"default":false},"tagPlaceholder":{"default":"Press enter to create a tag"}},"watch":[],"methods":[],"computed":[]},{"props":{"showPointer":{"default":true},"optionHeight":{"default":40}},"watch":[],"methods":[],"computed":[]}],"computed":[],"_compiled":true,"beforeCreate":[null],"staticRenderFns":[]}},"inheritAttrs":false,"staticRenderFns":[]},"computed":[],"_compiled":true,"staticRenderFns":[]},"field":"dataMask","config":{"name":"Data Format","label":"Data Format","helper":"The data format for the selected type."}},{"type":"ValidationSelect","field":"validation","config":{"label":"Validation Rules","helper":"The validation rules needed for this field"}},{"type":"FormInput","field":"placeholder","config":{"label":"Placeholder Text","helper":"The placeholder is what is shown in the field when no value is provided yet"}},{"type":"FormInput","field":"helper","config":{"label":"Helper Text","helper":"Help text is meant to provide additional guidance on the field's value"}},{"type":"FormCheckbox","field":"readonly","config":{"label":"Read Only","helper":null}},{"type":"ColorSelect","field":"color","config":{"label":"Text Color","helper":"Set the element's text color","options":[{"value":"text-primary","content":"primary"},{"value":"text-secondary","content":"secondary"},{"value":"text-success","content":"success"},{"value":"text-danger","content":"danger"},{"value":"text-warning","content":"warning"},{"value":"text-info","content":"info"},{"value":"text-light","content":"light"},{"value":"text-dark","content":"dark"}]}},{"type":"ColorSelect","field":"bgcolor","config":{"label":"Background Color","helper":"Set the element's background color","options":[{"value":"alert alert-primary","content":"primary"},{"value":"alert alert-secondary","content":"secondary"},{"value":"alert alert-success","content":"success"},{"value":"alert alert-danger","content":"danger"},{"value":"alert alert-warning","content":"warning"},{"value":"alert alert-info","content":"info"},{"value":"alert alert-light","content":"light"},{"value":"alert alert-dark","content":"dark"}]}},{"type":{"props":["value"],"watch":{"value":{"immediate":true}},"methods":[],"_scopeId":"data-v-67152bf8","computed":{"effectiveValue":[]},"_compiled":true,"components":{"MonacoEditor":{"name":"MonacoEditor","model":{"event":"change"},"props":{"theme":{"default":"vs"},"amdRequire":[]},"watch":{"options":{"deep":true}},"methods":[]}},"staticRenderFns":[]},"field":"defaultValue","config":{"label":"Default Value","helper":"Takes precedence over value set in data."}},{"type":"FormInput","field":"conditionalHide","config":{"label":"Visibility Rule","helper":"This control is hidden until this expression is true"}},{"type":"FormInput","field":"customCssSelector","config":{"label":"CSS Selector Name","helper":"Use this in your custom css rules","validation":"regex: [-?[_a-zA-Z]+[_-a-zA-Z0-9]*]"}}],"editor-control":"FormInput","editor-component":"FormInput"}]],"label":"Multicolumn \/ Table","config":{"icon":"fas fa-table","label":null,"options":[{"value":"1","content":"6"},{"value":"2","content":"6"}]},"component":"FormMultiColumn","container":true,"inspector":[{"type":"ContainerColumns","field":"options","config":{"label":"Column Width","helper":null,"validation":"columns-adds-to-12"}},{"type":"ColorSelect","field":"color","config":{"label":"Text Color","helper":"Set the element's text color","options":[{"value":"text-primary","content":"primary"},{"value":"text-secondary","content":"secondary"},{"value":"text-success","content":"success"},{"value":"text-danger","content":"danger"},{"value":"text-warning","content":"warning"},{"value":"text-info","content":"info"},{"value":"text-light","content":"light"},{"value":"text-dark","content":"dark"}]}},{"type":"ColorSelect","field":"bgcolor","config":{"label":"Background Color","helper":"Set the element's background color","options":[{"value":"alert alert-primary","content":"primary"},{"value":"alert alert-secondary","content":"secondary"},{"value":"alert alert-success","content":"success"},{"value":"alert alert-danger","content":"danger"},{"value":"alert alert-warning","content":"warning"},{"value":"alert alert-info","content":"info"},{"value":"alert alert-light","content":"light"},{"value":"alert alert-dark","content":"dark"}]}},{"type":"FormInput","field":"conditionalHide","config":{"label":"Visibility Rule","helper":"This control is hidden until this expression is true"}},{"type":"FormInput","field":"customCssSelector","config":{"label":"CSS Selector Name","helper":"Use this in your custom css rules","validation":"regex: [-?[_a-zA-Z]+[_-a-zA-Z0-9]*]"}}],"editor-control":"FormMultiColumn","editor-component":"MultiColumn"},{"items":[[{"label":"Date Picker","config":{"icon":"far fa-calendar-alt","name":"birthDate","type":"datetime","label":"Date of Birth","maxDate":null,"minDate":null,"disabled":false,"dataFormat":"date","validation":[],"placeholder":null},"component":"FormDatePicker","inspector":[{"type":"FormInput","field":"minDate","config":{"label":"Minimum Date","helper":null,"validation":"date_or_mustache"}},{"type":"FormInput","field":"maxDate","config":{"label":"Maximum Date","helper":null,"validation":"date_or_mustache"}},{"type":"FormInput","field":"name","config":{"name":"Variable Name","label":"Variable Name","helper":"A variable name is a symbolic name to reference information.","validation":"regex:\/^(?:[A-Z_.a-z])(?:[0-9A-Z_.a-z])*$\/|required"}},{"type":"FormInput","field":"label","config":{"label":"Label","helper":"The label describes the field's name"}},{"type":"FormMultiselect","field":"dataFormat","config":{"name":"Data Type","label":"Data Type","helper":"The data type specifies what kind of data is stored in the variable.","options":[{"value":"date","content":"Date"},{"value":"datetime","content":"Datetime"}],"validation":"required"}},{"type":"ValidationSelect","field":"validation","config":{"label":"Validation Rules","helper":"The validation rules needed for this field"}},{"type":"FormInput","field":"placeholder","config":{"label":"Placeholder Text","helper":"The placeholder is what is shown in the field when no value is provided yet"}},{"type":"FormInput","field":"helper","config":{"label":"Helper Text","helper":"Help text is meant to provide additional guidance on the field's value"}},{"type":"ColorSelect","field":"color","config":{"label":"Text Color","helper":"Set the element's text color","options":[{"value":"text-primary","content":"primary"},{"value":"text-secondary","content":"secondary"},{"value":"text-success","content":"success"},{"value":"text-danger","content":"danger"},{"value":"text-warning","content":"warning"},{"value":"text-info","content":"info"},{"value":"text-light","content":"light"},{"value":"text-dark","content":"dark"}]}},{"type":"ColorSelect","field":"bgcolor","config":{"label":"Background Color","helper":"Set the element's background color","options":[{"value":"alert alert-primary","content":"primary"},{"value":"alert alert-secondary","content":"secondary"},{"value":"alert alert-success","content":"success"},{"value":"alert alert-danger","content":"danger"},{"value":"alert alert-warning","content":"warning"},{"value":"alert alert-info","content":"info"},{"value":"alert alert-light","content":"light"},{"value":"alert alert-dark","content":"dark"}]}},{"type":"FormCheckbox","field":"disabled","config":{"label":"Read Only","helper":null}},{"type":{"props":["value"],"watch":{"value":{"immediate":true}},"methods":[],"_scopeId":"data-v-67152bf8","computed":{"effectiveValue":[]},"_compiled":true,"components":{"MonacoEditor":{"name":"MonacoEditor","model":{"event":"change"},"props":{"theme":{"default":"vs"},"amdRequire":[]},"watch":{"options":{"deep":true}},"methods":[]}},"staticRenderFns":[]},"field":"defaultValue","config":{"label":"Default Value","helper":"Takes precedence over value set in data."}},{"type":"FormInput","field":"conditionalHide","config":{"label":"Visibility Rule","helper":"This control is hidden until this expression is true"}},{"type":"FormInput","field":"customCssSelector","config":{"label":"CSS Selector Name","helper":"Use this in your custom css rules","validation":"regex: [-?[_a-zA-Z]+[_-a-zA-Z0-9]*]"}}],"editor-control":"FormDatePicker","editor-component":"FormDatePicker"}],[{"label":"Date Picker","config":{"icon":"far fa-calendar-alt","name":"hireDate","type":"datetime","label":"Hire Date","maxDate":null,"minDate":null,"disabled":false,"dataFormat":"date","validation":[],"placeholder":null},"component":"FormDatePicker","inspector":[{"type":"FormInput","field":"minDate","config":{"label":"Minimum Date","helper":null,"validation":"date_or_mustache"}},{"type":"FormInput","field":"maxDate","config":{"label":"Maximum Date","helper":null,"validation":"date_or_mustache"}},{"type":"FormInput","field":"name","config":{"name":"Variable Name","label":"Variable Name","helper":"A variable name is a symbolic name to reference information.","validation":"regex:\/^(?:[A-Z_.a-z])(?:[0-9A-Z_.a-z])*$\/|required"}},{"type":"FormInput","field":"label","config":{"label":"Label","helper":"The label describes the field's name"}},{"type":"FormMultiselect","field":"dataFormat","config":{"name":"Data Type","label":"Data Type","helper":"The data type specifies what kind of data is stored in the variable.","options":[{"value":"date","content":"Date"},{"value":"datetime","content":"Datetime"}],"validation":"required"}},{"type":"ValidationSelect","field":"validation","config":{"label":"Validation Rules","helper":"The validation rules needed for this field"}},{"type":"FormInput","field":"placeholder","config":{"label":"Placeholder Text","helper":"The placeholder is what is shown in the field when no value is provided yet"}},{"type":"FormInput","field":"helper","config":{"label":"Helper Text","helper":"Help text is meant to provide additional guidance on the field's value"}},{"type":"ColorSelect","field":"color","config":{"label":"Text Color","helper":"Set the element's text color","options":[{"value":"text-primary","content":"primary"},{"value":"text-secondary","content":"secondary"},{"value":"text-success","content":"success"},{"value":"text-danger","content":"danger"},{"value":"text-warning","content":"warning"},{"value":"text-info","content":"info"},{"value":"text-light","content":"light"},{"value":"text-dark","content":"dark"}]}},{"type":"ColorSelect","field":"bgcolor","config":{"label":"Background Color","helper":"Set the element's background color","options":[{"value":"alert alert-primary","content":"primary"},{"value":"alert alert-secondary","content":"secondary"},{"value":"alert alert-success","content":"success"},{"value":"alert alert-danger","content":"danger"},{"value":"alert alert-warning","content":"warning"},{"value":"alert alert-info","content":"info"},{"value":"alert alert-light","content":"light"},{"value":"alert alert-dark","content":"dark"}]}},{"type":"FormCheckbox","field":"disabled","config":{"label":"Read Only","helper":null}},{"type":{"props":["value"],"watch":{"value":{"immediate":true}},"methods":[],"_scopeId":"data-v-67152bf8","computed":{"effectiveValue":[]},"_compiled":true,"components":{"MonacoEditor":{"name":"MonacoEditor","model":{"event":"change"},"props":{"theme":{"default":"vs"},"amdRequire":[]},"watch":{"options":{"deep":true}},"methods":[]}},"staticRenderFns":[]},"field":"defaultValue","config":{"label":"Default Value","helper":"Takes precedence over value set in data."}},{"type":"FormInput","field":"conditionalHide","config":{"label":"Visibility Rule","helper":"This control is hidden until this expression is true"}},{"type":"FormInput","field":"customCssSelector","config":{"label":"CSS Selector Name","helper":"Use this in your custom css rules","validation":"regex: [-?[_a-zA-Z]+[_-a-zA-Z0-9]*]"}}],"editor-control":"FormDatePicker","editor-component":"FormDatePicker"}]],"label":"Multicolumn \/ Table","config":{"icon":"fas fa-table","label":null,"options":[{"value":"1","content":"6"},{"value":"2","content":"6"}]},"component":"FormMultiColumn","container":true,"inspector":[{"type":"ContainerColumns","field":"options","config":{"label":"Column Width","helper":null,"validation":"columns-adds-to-12"}},{"type":"ColorSelect","field":"color","config":{"label":"Text Color","helper":"Set the element's text color","options":[{"value":"text-primary","content":"primary"},{"value":"text-secondary","content":"secondary"},{"value":"text-success","content":"success"},{"value":"text-danger","content":"danger"},{"value":"text-warning","content":"warning"},{"value":"text-info","content":"info"},{"value":"text-light","content":"light"},{"value":"text-dark","content":"dark"}]}},{"type":"ColorSelect","field":"bgcolor","config":{"label":"Background Color","helper":"Set the element's background color","options":[{"value":"alert alert-primary","content":"primary"},{"value":"alert alert-secondary","content":"secondary"},{"value":"alert alert-success","content":"success"},{"value":"alert alert-danger","content":"danger"},{"value":"alert alert-warning","content":"warning"},{"value":"alert alert-info","content":"info"},{"value":"alert alert-light","content":"light"},{"value":"alert alert-dark","content":"dark"}]}},{"type":"FormInput","field":"conditionalHide","config":{"label":"Visibility Rule","helper":"This control is hidden until this expression is true"}},{"type":"FormInput","field":"customCssSelector","config":{"label":"CSS Selector Name","helper":"Use this in your custom css rules","validation":"regex: [-?[_a-zA-Z]+[_-a-zA-Z0-9]*]"}}],"editor-control":"FormMultiColumn","editor-component":"MultiColumn"},{"items":[[{"label":"Select List","config":{"icon":"fas fa-angle-double-down","name":"gender","label":"Gender","helper":null,"options":{"key":"value","value":"content","dataName":"response","jsonData":"[{\"content\":\"Male\",\"value\":\"M\"},{\"content\":\"Female\",\"value\":\"F\"},{\"content\":\"Prefer not to say\",\"value\":\"P\"}]","renderAs":"dropdown","editIndex":null,"dataSource":"provideData","optionsList":[{"value":"M","content":"Male"},{"value":"F","content":"Female"},{"value":"P","content":"Prefer not to say"}],"removeIndex":null,"showRenderAs":true,"showJsonEditor":false,"showOptionCard":false,"selectedOptions":[],"allowMultiSelect":false,"showRemoveWarning":false,"valueTypeReturned":"single"},"dataFormat":"array","validation":[],"placeholder":null,"rootElement":"response","dataSourceUrl":null,"dataSourceEndpoint":null},"component":"FormSelectList","inspector":[{"type":"FormInput","field":"name","config":{"name":"Variable Name","label":"Variable Name","helper":"A variable name is a symbolic name to reference information.","validation":"regex:\/^(?:[A-Z_.a-z])(?:[0-9A-Z_.a-z])*$\/|required"}},{"type":"FormInput","field":"label","config":{"label":"Label","helper":"The label describes the field's name"}},{"type":"FormInput","field":"placeholder","config":{"label":"Placeholder Text","helper":"The placeholder is what is shown in the field when no value is provided yet"}},{"type":"ValidationSelect","field":"validation","config":{"label":"Validation Rules","helper":"The validation rules needed for this field"}},{"type":"FormInput","field":"helper","config":{"label":"Helper Text","helper":"Help text is meant to provide additional guidance on the field's value"}},{"type":"OptionsList","field":"options","config":{"label":null,"helper":null}},{"type":"ColorSelect","field":"color","config":{"label":"Text Color","helper":"Set the element's text color","options":[{"value":"text-primary","content":"primary"},{"value":"text-secondary","content":"secondary"},{"value":"text-success","content":"success"},{"value":"text-danger","content":"danger"},{"value":"text-warning","content":"warning"},{"value":"text-info","content":"info"},{"value":"text-light","content":"light"},{"value":"text-dark","content":"dark"}]}},{"type":"ColorSelect","field":"bgcolor","config":{"label":"Background Color","helper":"Set the element's background color","options":[{"value":"alert alert-primary","content":"primary"},{"value":"alert alert-secondary","content":"secondary"},{"value":"alert alert-success","content":"success"},{"value":"alert alert-danger","content":"danger"},{"value":"alert alert-warning","content":"warning"},{"value":"alert alert-info","content":"info"},{"value":"alert alert-light","content":"light"},{"value":"alert alert-dark","content":"dark"}]}},{"type":{"props":["value"],"watch":{"value":{"immediate":true}},"methods":[],"_scopeId":"data-v-67152bf8","computed":{"effectiveValue":[]},"_compiled":true,"components":{"MonacoEditor":{"name":"MonacoEditor","model":{"event":"change"},"props":{"theme":{"default":"vs"},"amdRequire":[]},"watch":{"options":{"deep":true}},"methods":[]}},"staticRenderFns":[]},"field":"defaultValue","config":{"label":"Default Value","helper":"Takes precedence over value set in data."}},{"type":"FormInput","field":"conditionalHide","config":{"label":"Visibility Rule","helper":"This control is hidden until this expression is true"}},{"type":"FormInput","field":"customCssSelector","config":{"label":"CSS Selector Name","helper":"Use this in your custom css rules","validation":"regex: [-?[_a-zA-Z]+[_-a-zA-Z0-9]*]"}}],"editor-control":"FormSelectList","editor-component":"FormSelectList"}],[{"label":"Line Input","config":{"icon":"far fa-square","name":"annualIncome","type":"text","label":"Annual Income","helper":null,"dataMask":{"code":"USD","name":"US Dollar","format":"#,###.##","symbol":"$"},"readonly":false,"dataFormat":"currency","validation":[],"placeholder":null},"component":"FormInput","inspector":[{"type":"FormInput","field":"name","config":{"name":"Variable Name","label":"Variable Name","helper":"A variable name is a symbolic name to reference information.","validation":"regex:\/^(?:[A-Z_.a-z])(?:[0-9A-Z_.a-z])*$\/|required"}},{"type":"FormInput","field":"label","config":{"label":"Label","helper":"The label describes the field's name"}},{"type":"FormMultiselect","field":"dataFormat","config":{"name":"Data Type","label":"Data Type","helper":"The data type specifies what kind of data is stored in the variable.","options":[{"value":"string","content":"Text"},{"value":"int","content":"Integer"},{"value":"currency","content":"Currency"},{"value":"percentage","content":"Percentage"},{"value":"float","content":"Decimal"},{"value":"datetime","content":"Datetime"},{"value":"date","content":"Date"},{"value":"password","content":"Password"}],"validation":"required"}},{"type":{"extends":{"props":["label","error","options","helper","name","value","selectedControl"],"mixins":[{"props":{"validation":{"type":null},"validationData":{"type":null},"validationField":{"type":null},"validationMessages":{"type":null}},"watch":{"validationData":{"deep":true,"user":true}},"methods":[]}],"methods":[],"computed":[],"_compiled":true,"components":{"Multiselect":{"name":"vue-multiselect","props":{"name":{"default":null},"limit":{"default":99999},"loading":{"default":false},"disabled":{"default":false},"tabindex":{"default":0},"limitText":[],"maxHeight":{"default":300},"showLabels":{"default":true},"selectLabel":{"default":"Press enter to select"},"deselectLabel":{"default":"Press enter to remove"},"openDirection":{"default":null},"selectedLabel":{"default":"Selected"},"showNoOptions":{"default":true},"showNoResults":{"default":true},"selectGroupLabel":{"default":"Press enter to select group"},"deselectGroupLabel":{"default":"Press enter to deselect group"}},"mixins":[{"props":{"id":{"default":null},"max":{"type":[null,null],"default":false},"label":[],"value":{"type":null},"options":{"required":true},"trackBy":[],"multiple":{"default":false},"taggable":{"default":false},"blockKeys":[],"allowEmpty":{"default":true},"groupLabel":[],"resetAfter":{"default":false},"searchable":{"default":true},"customLabel":[],"groupSelect":{"default":false},"groupValues":[],"placeholder":{"default":"Select option"},"tagPosition":{"default":"top"},"hideSelected":{"default":false},"optionsLimit":{"default":1000},"clearOnSelect":{"default":true},"closeOnSelect":{"default":true},"internalSearch":{"default":true},"preselectFirst":{"default":false},"preserveSearch":{"default":false},"tagPlaceholder":{"default":"Press enter to create a tag"}},"watch":[],"methods":[],"computed":[]},{"props":{"showPointer":{"default":true},"optionHeight":{"default":40}},"watch":[],"methods":[],"computed":[]}],"computed":[],"_compiled":true,"beforeCreate":[null],"staticRenderFns":[]}},"inheritAttrs":false,"staticRenderFns":[]},"computed":[],"_compiled":true,"staticRenderFns":[]},"field":"dataMask","config":{"name":"Data Format","label":"Data Format","helper":"The data format for the selected type."}},{"type":"ValidationSelect","field":"validation","config":{"label":"Validation Rules","helper":"The validation rules needed for this field"}},{"type":"FormInput","field":"placeholder","config":{"label":"Placeholder Text","helper":"The placeholder is what is shown in the field when no value is provided yet"}},{"type":"FormInput","field":"helper","config":{"label":"Helper Text","helper":"Help text is meant to provide additional guidance on the field's value"}},{"type":"FormCheckbox","field":"readonly","config":{"label":"Read Only","helper":null}},{"type":"ColorSelect","field":"color","config":{"label":"Text Color","helper":"Set the element's text color","options":[{"value":"text-primary","content":"primary"},{"value":"text-secondary","content":"secondary"},{"value":"text-success","content":"success"},{"value":"text-danger","content":"danger"},{"value":"text-warning","content":"warning"},{"value":"text-info","content":"info"},{"value":"text-light","content":"light"},{"value":"text-dark","content":"dark"}]}},{"type":"ColorSelect","field":"bgcolor","config":{"label":"Background Color","helper":"Set the element's background color","options":[{"value":"alert alert-primary","content":"primary"},{"value":"alert alert-secondary","content":"secondary"},{"value":"alert alert-success","content":"success"},{"value":"alert alert-danger","content":"danger"},{"value":"alert alert-warning","content":"warning"},{"value":"alert alert-info","content":"info"},{"value":"alert alert-light","content":"light"},{"value":"alert alert-dark","content":"dark"}]}},{"type":{"_Ctor":[],"props":{"value":{"type":null}},"watch":{"value":{"user":true,"immediate":true}},"methods":[],"_scopeId":"data-v-67152bf8","computed":{"effectiveValue":[]},"_compiled":true,"components":{"MonacoEditor":{"name":"MonacoEditor","_Ctor":[],"model":{"event":"change"},"props":{"theme":{"default":"vs"},"value":[],"options":[],"language":[],"amdRequire":[]},"watch":{"options":{"deep":true,"user":true}},"methods":[]}},"staticRenderFns":[]},"field":"defaultValue","config":{"label":"Default Value","helper":"Takes precedence over value set in data."}},{"type":"FormInput","field":"conditionalHide","config":{"label":"Visibility Rule","helper":"This control is hidden until this expression is true"}},{"type":"FormInput","field":"customCssSelector","config":{"label":"CSS Selector Name","helper":"Use this in your custom css rules","validation":"regex: [-?[_a-zA-Z]+[_-a-zA-Z0-9]*]"}}],"editor-control":"FormInput","editor-component":"FormInput"}]],"label":"Multicolumn \/ Table","config":{"icon":"fas fa-table","label":null,"options":[{"value":"1","content":"6"},{"value":"2","content":"6"}]},"component":"FormMultiColumn","container":true,"inspector":[{"type":"ContainerColumns","field":"options","config":{"label":"Column Width","helper":null,"validation":"columns-adds-to-12"}},{"type":"ColorSelect","field":"color","config":{"label":"Text Color","helper":"Set the element's text color","options":[{"value":"text-primary","content":"primary"},{"value":"text-secondary","content":"secondary"},{"value":"text-success","content":"success"},{"value":"text-danger","content":"danger"},{"value":"text-warning","content":"warning"},{"value":"text-info","content":"info"},{"value":"text-light","content":"light"},{"value":"text-dark","content":"dark"}]}},{"type":"ColorSelect","field":"bgcolor","config":{"label":"Background Color","helper":"Set the element's background color","options":[{"value":"alert alert-primary","content":"primary"},{"value":"alert alert-secondary","content":"secondary"},{"value":"alert alert-success","content":"success"},{"value":"alert alert-danger","content":"danger"},{"value":"alert alert-warning","content":"warning"},{"value":"alert alert-info","content":"info"},{"value":"alert alert-light","content":"light"},{"value":"alert alert-dark","content":"dark"}]}},{"type":"FormInput","field":"conditionalHide","config":{"label":"Visibility Rule","helper":"This control is hidden until this expression is true"}},{"type":"FormInput","field":"customCssSelector","config":{"label":"CSS Selector Name","helper":"Use this in your custom css rules","validation":"regex: [-?[_a-zA-Z]+[_-a-zA-Z0-9]*]"}}],"editor-control":"FormMultiColumn","editor-component":"MultiColumn"},{"items":[[{"label":"Line Input","config":{"icon":"far fa-square","name":"vacationDaysTaken","type":"text","label":"Vacation Days Taken","helper":null,"readonly":false,"dataFormat":"int","validation":[],"placeholder":null,"defaultValue":{"mode":"basic","value":"0"}},"component":"FormInput","inspector":[{"type":"FormInput","field":"name","config":{"name":"Variable Name","label":"Variable Name","helper":"A variable name is a symbolic name to reference information.","validation":"regex:\/^(?:[A-Z_.a-z])(?:[0-9A-Z_.a-z])*$\/|required"}},{"type":"FormInput","field":"label","config":{"label":"Label","helper":"The label describes the field's name"}},{"type":"FormMultiselect","field":"dataFormat","config":{"name":"Data Type","label":"Data Type","helper":"The data type specifies what kind of data is stored in the variable.","options":[{"value":"string","content":"Text"},{"value":"int","content":"Integer"},{"value":"currency","content":"Currency"},{"value":"percentage","content":"Percentage"},{"value":"float","content":"Decimal"},{"value":"datetime","content":"Datetime"},{"value":"date","content":"Date"},{"value":"password","content":"Password"}],"validation":"required"}},{"type":{"extends":{"props":["label","error","options","helper","name","value","selectedControl"],"mixins":[{"props":{"validation":{"type":null},"validationData":{"type":null},"validationField":{"type":null},"validationMessages":{"type":null}},"watch":{"validationData":{"deep":true,"user":true}},"methods":[]}],"methods":[],"computed":[],"_compiled":true,"components":{"Multiselect":{"name":"vue-multiselect","props":{"name":{"default":null},"limit":{"default":99999},"loading":{"default":false},"disabled":{"default":false},"tabindex":{"default":0},"limitText":[],"maxHeight":{"default":300},"showLabels":{"default":true},"selectLabel":{"default":"Press enter to select"},"deselectLabel":{"default":"Press enter to remove"},"openDirection":{"default":null},"selectedLabel":{"default":"Selected"},"showNoOptions":{"default":true},"showNoResults":{"default":true},"selectGroupLabel":{"default":"Press enter to select group"},"deselectGroupLabel":{"default":"Press enter to deselect group"}},"mixins":[{"props":{"id":{"default":null},"max":{"type":[null,null],"default":false},"label":[],"value":{"type":null},"options":{"required":true},"trackBy":[],"multiple":{"default":false},"taggable":{"default":false},"blockKeys":[],"allowEmpty":{"default":true},"groupLabel":[],"resetAfter":{"default":false},"searchable":{"default":true},"customLabel":[],"groupSelect":{"default":false},"groupValues":[],"placeholder":{"default":"Select option"},"tagPosition":{"default":"top"},"hideSelected":{"default":false},"optionsLimit":{"default":1000},"clearOnSelect":{"default":true},"closeOnSelect":{"default":true},"internalSearch":{"default":true},"preselectFirst":{"default":false},"preserveSearch":{"default":false},"tagPlaceholder":{"default":"Press enter to create a tag"}},"watch":[],"methods":[],"computed":[]},{"props":{"showPointer":{"default":true},"optionHeight":{"default":40}},"watch":[],"methods":[],"computed":[]}],"computed":[],"_compiled":true,"beforeCreate":[null],"staticRenderFns":[]}},"inheritAttrs":false,"staticRenderFns":[]},"computed":[],"_compiled":true,"staticRenderFns":[]},"field":"dataMask","config":{"name":"Data Format","label":"Data Format","helper":"The data format for the selected type."}},{"type":"ValidationSelect","field":"validation","config":{"label":"Validation Rules","helper":"The validation rules needed for this field"}},{"type":"FormInput","field":"placeholder","config":{"label":"Placeholder Text","helper":"The placeholder is what is shown in the field when no value is provided yet"}},{"type":"FormInput","field":"helper","config":{"label":"Helper Text","helper":"Help text is meant to provide additional guidance on the field's value"}},{"type":"FormCheckbox","field":"readonly","config":{"label":"Read Only","helper":null}},{"type":"ColorSelect","field":"color","config":{"label":"Text Color","helper":"Set the element's text color","options":[{"value":"text-primary","content":"primary"},{"value":"text-secondary","content":"secondary"},{"value":"text-success","content":"success"},{"value":"text-danger","content":"danger"},{"value":"text-warning","content":"warning"},{"value":"text-info","content":"info"},{"value":"text-light","content":"light"},{"value":"text-dark","content":"dark"}]}},{"type":"ColorSelect","field":"bgcolor","config":{"label":"Background Color","helper":"Set the element's background color","options":[{"value":"alert alert-primary","content":"primary"},{"value":"alert alert-secondary","content":"secondary"},{"value":"alert alert-success","content":"success"},{"value":"alert alert-danger","content":"danger"},{"value":"alert alert-warning","content":"warning"},{"value":"alert alert-info","content":"info"},{"value":"alert alert-light","content":"light"},{"value":"alert alert-dark","content":"dark"}]}},{"type":{"props":["value"],"watch":{"value":{"immediate":true}},"methods":[],"_scopeId":"data-v-67152bf8","computed":{"effectiveValue":[]},"_compiled":true,"components":{"MonacoEditor":{"name":"MonacoEditor","model":{"event":"change"},"props":{"theme":{"default":"vs"},"amdRequire":[]},"watch":{"options":{"deep":true}},"methods":[]}},"staticRenderFns":[]},"field":"defaultValue","config":{"label":"Default Value","helper":"Takes precedence over value set in data."}},{"type":"FormInput","field":"conditionalHide","config":{"label":"Visibility Rule","helper":"This control is hidden until this expression is true"}},{"type":"FormInput","field":"customCssSelector","config":{"label":"CSS Selector Name","helper":"Use this in your custom css rules","validation":"regex: [-?[_a-zA-Z]+[_-a-zA-Z0-9]*]"}}],"editor-control":"FormInput","editor-component":"FormInput"}],[]],"label":"Multicolumn \/ Table","config":{"icon":"fas fa-table","label":null,"options":[{"value":"1","content":"6"},{"value":"2","content":"6"}]},"component":"FormMultiColumn","container":true,"inspector":[{"type":"ContainerColumns","field":"options","config":{"label":"Column Width","helper":null,"validation":"columns-adds-to-12"}},{"type":"ColorSelect","field":"color","config":{"label":"Text Color","helper":"Set the element's text color","options":[{"value":"text-primary","content":"primary"},{"value":"text-secondary","content":"secondary"},{"value":"text-success","content":"success"},{"value":"text-danger","content":"danger"},{"value":"text-warning","content":"warning"},{"value":"text-info","content":"info"},{"value":"text-light","content":"light"},{"value":"text-dark","content":"dark"}]}},{"type":"ColorSelect","field":"bgcolor","config":{"label":"Background Color","helper":"Set the element's background color","options":[{"value":"alert alert-primary","content":"primary"},{"value":"alert alert-secondary","content":"secondary"},{"value":"alert alert-success","content":"success"},{"value":"alert alert-danger","content":"danger"},{"value":"alert alert-warning","content":"warning"},{"value":"alert alert-info","content":"info"},{"value":"alert alert-light","content":"light"},{"value":"alert alert-dark","content":"dark"}]}},{"type":"FormInput","field":"conditionalHide","config":{"label":"Visibility Rule","helper":"This control is hidden until this expression is true"}},{"type":"FormInput","field":"customCssSelector","config":{"label":"CSS Selector Name","helper":"Use this in your custom css rules","validation":"regex: [-?[_a-zA-Z]+[_-a-zA-Z0-9]*]"}}],"editor-control":"MultiColumn","editor-component":"MultiColumn"},{"label":"Submit Button","config":{"icon":"fas fa-share-square","name":null,"event":"submit","label":"Save Person","variant":"primary","fieldValue":null,"defaultSubmit":true},"component":"FormButton","inspector":[{"type":"FormInput","field":"label","config":{"label":"Label","helper":"The label describes the button's text"}},{"type":"FormInput","field":"name","config":{"name":"Variable Name","label":"Variable Name","helper":"A variable name is a symbolic name to reference information."}},{"type":"FormMultiselect","field":"event","config":{"label":"Type","helper":"Choose whether the button should submit the form","options":[{"value":"submit","content":"Submit Button"},{"value":"script","content":"Regular Button"}]}},{"type":"FormInput","field":"fieldValue","config":{"label":"Value","helper":"The value being submitted"}},{"type":"FormMultiselect","field":"variant","config":{"label":"Button Variant Style","helper":"The variant determines the appearance of the button","options":[{"value":"primary","content":"Primary"},{"value":"secondary","content":"Secondary"},{"value":"success","content":"Success"},{"value":"danger","content":"Danger"},{"value":"warning","content":"Warning"},{"value":"info","content":"Info"},{"value":"light","content":"Light"},{"value":"dark","content":"Dark"},{"value":"link","content":"Link"}]}},{"type":"FormInput","field":"conditionalHide","config":{"label":"Visibility Rule","helper":"This control is hidden until this expression is true"}},{"type":"FormInput","field":"customCssSelector","config":{"label":"CSS Selector Name","helper":"Use this in your custom css rules","validation":"regex: [-?[_a-zA-Z]+[_-a-zA-Z0-9]*]"}}],"editor-control":"FormSubmit","editor-component":"FormButton"}]}],"computed":[],"custom_css":null,"created_at":"2020-08-31T19:54:06+00:00","updated_at":"2020-09-23T15:28:26+00:00","status":"ACTIVE","key":null,"watchers":null,"categories":[{"id":21,"name":"Collections","status":"ACTIVE","is_system":0,"created_at":"2020-02-05T14:18:32+00:00","updated_at":"2020-09-23T15:28:26+00:00","pivot":{"assignable_id":221,"category_id":21,"category_type":"ProcessMaker\\Models\\ScreenCategory"}}]},{"id":222,"screen_category_id":"9","title":"Upload Person Records","description":"Demo of loading records from Excel to Records to Collections","type":"FORM","config":[{"name":"Load Persons","items":[{"label":"Rich Text","config":{"icon":"fas fa-pencil-ruler","label":null,"content":"<h3><strong>Load Persons<\/strong><\/h3>","interactive":true,"renderVarHtml":null},"component":"FormHtmlViewer","inspector":[{"type":"FormTextArea","field":"content","config":{"rows":5,"label":"Content","value":null,"helper":"The HTML text to display"}},{"type":"FormCheckbox","field":"renderVarHtml","config":{"label":"Render HTML from a Variable","value":null,"helper":null}},{"type":"FormInput","field":"conditionalHide","config":{"label":"Visibility Rule","helper":"This control is hidden until this expression is true"}},{"type":"FormInput","field":"customCssSelector","config":{"label":"CSS Selector Name","helper":"Use this in your custom css rules","validation":"regex: [-?[_a-zA-Z]+[_-a-zA-Z0-9]*]"}}],"editor-control":"FormHtmlEditor","editor-component":"FormHtmlEditor"},{"label":"Rich Text","config":{"icon":"fas fa-pencil-ruler","label":null,"content":"<p><span style=\"text-decoration: underline;\"><strong>Instructions<\/strong><\/span><\/p>\n<p>Upload an Excel file matching the format below.&nbsp;<\/p>\n<table>\n<tbody>\n<tr>\n<td>firstName<\/td>\n<td>lastName<\/td>\n<td>birthDate<\/td>\n<td>hireDate<\/td>\n<td>gender<\/td>\n<td>annualIncome<\/td>\n<td>vacationDaysTaken<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>","interactive":true,"renderVarHtml":null},"component":"FormHtmlViewer","inspector":[{"type":"FormTextArea","field":"content","config":{"rows":5,"label":"Content","value":null,"helper":"The HTML text to display"}},{"type":"FormCheckbox","field":"renderVarHtml","config":{"label":"Render HTML from a Variable","value":null,"helper":null}},{"type":"FormInput","field":"conditionalHide","config":{"label":"Visibility Rule","helper":"This control is hidden until this expression is true"}},{"type":"FormInput","field":"customCssSelector","config":{"label":"CSS Selector Name","helper":"Use this in your custom css rules","validation":"regex: [-?[_a-zA-Z]+[_-a-zA-Z0-9]*]"}}],"editor-control":"FormHtmlEditor","editor-component":"FormHtmlEditor"},{"label":"File Upload","config":{"icon":"fas fa-file-upload","name":"recordsFile","label":"Upload Excel\/CSV file","accept":"application\/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application\/vnd.ms-excel","validation":"required"},"component":"FileUpload","inspector":[{"type":"FormInput","field":"label","config":{"label":"Label","helper":"The text to display"}},{"type":"FormInput","field":"accept","config":{"label":"File Accepted","helper":"application\/msword, image\/gif, image\/jpeg, application\/pdf, application\/vnd.ms-powerpoint, application\/vnd.ms-excel, text\/plain"}},{"type":"FormInput","field":"name","config":{"name":"Name","label":"Name","helper":"The name of the upload","validation":"regex:\/^(?:[A-Z_.a-z])(?:[0-9A-Z_.a-z])*$\/|required"}},{"type":"RequiredCheckbox","field":"validation","config":{"label":"Required","helper":"Prevent form from being submitted unless a file is uploaded"}},{"type":"FormInput","field":"conditionalHide","config":{"label":"Visibility Rule","helper":"This control is hidden until this expression is true"}},{"type":"FormInput","field":"customCssSelector","config":{"label":"CSS Selector Name","helper":"Use this in your custom css rules","validation":"regex: [-?[_a-zA-Z]+[_-a-zA-Z0-9]*]"}}],"editor-control":"FileUpload","editor-component":"FileUpload"},{"items":[[],[{"label":"Submit Button","config":{"icon":"fas fa-share-square","name":"requestStatus","event":"submit","label":"Upload File","variant":"primary","fieldValue":"fileUploaded","defaultSubmit":true},"component":"FormButton","inspector":[{"type":"FormInput","field":"label","config":{"label":"Label","helper":"The label describes the button's text"}},{"type":"FormInput","field":"name","config":{"name":"Variable Name","label":"Variable Name","helper":"A variable name is a symbolic name to reference information."}},{"type":"FormMultiselect","field":"event","config":{"label":"Type","helper":"Choose whether the button should submit the form","options":[{"value":"submit","content":"Submit Button"},{"value":"script","content":"Regular Button"}]}},{"type":"FormInput","field":"fieldValue","config":{"label":"Value","helper":"The value being submitted"}},{"type":"FormMultiselect","field":"variant","config":{"label":"Button Variant Style","helper":"The variant determines the appearance of the button","options":[{"value":"primary","content":"Primary"},{"value":"secondary","content":"Secondary"},{"value":"success","content":"Success"},{"value":"danger","content":"Danger"},{"value":"warning","content":"Warning"},{"value":"info","content":"Info"},{"value":"light","content":"Light"},{"value":"dark","content":"Dark"},{"value":"link","content":"Link"}]}},{"type":"FormInput","field":"conditionalHide","config":{"label":"Visibility Rule","helper":"This control is hidden until this expression is true"}},{"type":"FormInput","field":"customCssSelector","config":{"label":"CSS Selector Name","helper":"Use this in your custom css rules","validation":"regex: [-?[_a-zA-Z]+[_-a-zA-Z0-9]*]"}}],"editor-control":"FormSubmit","editor-component":"FormButton"}],[]],"label":"Multicolumn \/ Table","config":{"icon":"fas fa-table","label":null,"options":[{"value":"1","content":"4"},{"value":"2","content":"4"},{"value":3,"content":"4"}]},"component":"FormMultiColumn","container":true,"inspector":[{"type":"ContainerColumns","field":"options","config":{"label":"Column Width","helper":null,"validation":"columns-adds-to-12"}},{"type":"ColorSelect","field":"color","config":{"label":"Text Color","helper":"Set the element's text color","options":[{"value":"text-primary","content":"primary"},{"value":"text-secondary","content":"secondary"},{"value":"text-success","content":"success"},{"value":"text-danger","content":"danger"},{"value":"text-warning","content":"warning"},{"value":"text-info","content":"info"},{"value":"text-light","content":"light"},{"value":"text-dark","content":"dark"}]}},{"type":"ColorSelect","field":"bgcolor","config":{"label":"Background Color","helper":"Set the element's background color","options":[{"value":"alert alert-primary","content":"primary"},{"value":"alert alert-secondary","content":"secondary"},{"value":"alert alert-success","content":"success"},{"value":"alert alert-danger","content":"danger"},{"value":"alert alert-warning","content":"warning"},{"value":"alert alert-info","content":"info"},{"value":"alert alert-light","content":"light"},{"value":"alert alert-dark","content":"dark"}]}},{"type":"FormInput","field":"conditionalHide","config":{"label":"Visibility Rule","helper":"This control is hidden until this expression is true"}},{"type":"FormInput","field":"customCssSelector","config":{"label":"CSS Selector Name","helper":"Use this in your custom css rules","validation":"regex: [-?[_a-zA-Z]+[_-a-zA-Z0-9]*]"}}],"editor-control":"FormMultiColumn","editor-component":"MultiColumn"}]},{"name":"Person","items":[{"label":"Nested Screen","config":{"icon":"fas fa-file-invoice","name":null,"event":"submit","label":"Nested Screen","value":null,"screen":221,"variant":"primary"},"component":"FormNestedScreen","inspector":[{"type":"ScreenSelector","field":"screen","config":{"name":"SelectScreen","label":"Screen","helper":"Select a screen"}},{"type":"FormInput","field":"conditionalHide","config":{"label":"Visibility Rule","helper":"This control is hidden until this expression is true"}},{"type":"FormInput","field":"customCssSelector","config":{"label":"CSS Selector Name","helper":"Use this in your custom css rules","validation":"regex: [-?[_a-zA-Z]+[_-a-zA-Z0-9]*]"}}],"editor-control":"FormSubmit","editor-component":"FormNestedScreen"}]}],"computed":[],"custom_css":"table {\n    border-collapse: collapse;\n }\n td {\n      padding: 5px 10px;\n      border: 1px solid black;\n }","created_at":"2020-09-21T22:31:00+00:00","updated_at":"2020-09-23T15:28:26+00:00","status":"ACTIVE","key":null,"watchers":null,"categories":[{"id":9,"name":"Blocks","status":"ACTIVE","is_system":0,"created_at":"2020-04-17T19:26:42+00:00","updated_at":"2020-06-19T17:02:31+00:00","pivot":{"assignable_id":222,"category_id":9,"category_type":"ProcessMaker\\Models\\ScreenCategory"}}]},{"id":223,"screen_category_id":"9","title":"Review Uploaded Person Records","description":"Demo of loading records from Excel to Records to Collections","type":"FORM","config":[{"name":"Load Persons","items":[{"label":"Rich Text","config":{"icon":"fas fa-pencil-ruler","label":null,"content":"<h3><strong>Load Persons<\/strong><\/h3>\n<p>&nbsp;<\/p>\n<p>Review the uploaded records<\/p>","interactive":true,"renderVarHtml":null},"component":"FormHtmlViewer","inspector":[{"type":"FormTextArea","field":"content","config":{"rows":5,"label":"Content","value":null,"helper":"The HTML text to display"}},{"type":"FormCheckbox","field":"renderVarHtml","config":{"label":"Render HTML from a Variable","value":null,"helper":null}},{"type":"FormInput","field":"conditionalHide","config":{"label":"Visibility Rule","helper":"This control is hidden until this expression is true"}},{"type":"FormInput","field":"customCssSelector","config":{"label":"CSS Selector Name","helper":"Use this in your custom css rules","validation":"regex: [-?[_a-zA-Z]+[_-a-zA-Z0-9]*]"}}],"editor-control":"FormHtmlEditor","editor-component":"FormHtmlEditor"},{"label":"Record List","config":{"form":"1","icon":"fas fa-th-list","name":"persons","label":"List of Persons","fields":{"jsonData":"[{\"value\":\"firstName\",\"content\":\"First Name\"},{\"value\":\"lastName\",\"content\":\"Last Name\"},{\"value\":\"birthDate\",\"content\":\"Birth Date\"},{\"value\":\"hireDate\",\"content\":\"Hire Date\"},{\"value\":\"gender\",\"content\":\"Gender\"},{\"value\":\"annualIncome\",\"content\":\"Income\"},{\"value\":\"vacationDaysTaken\",\"content\":\"Vacation Days\"}]","editIndex":null,"dataSource":"provideData","optionsList":[{"value":"firstName","content":"First Name"},{"value":"lastName","content":"Last Name"},{"value":"birthDate","content":"Birth Date"},{"value":"hireDate","content":"Hire Date"},{"value":"gender","content":"Gender"},{"value":"annualIncome","content":"Income"},{"value":"vacationDaysTaken","content":"Vacation Days"}],"removeIndex":null,"showJsonEditor":false,"showOptionCard":false,"showRemoveWarning":false},"editable":true},"component":"FormRecordList","inspector":[{"type":"FormInput","field":"name","config":{"name":"Variable Name","label":"Variable Name","helper":"A variable name is a symbolic name to reference information.","validation":"regex:\/^(?:[A-Z_.a-z])(?:[0-9A-Z_.a-z])*$\/|required"}},{"type":"FormInput","field":"label","config":{"label":"List Label","helper":"The label describes this record list"}},{"type":"FormCheckbox","field":"editable","config":{"label":"Editable?","helper":"Should records be editable\/removable and can new records be added"}},{"type":"ColumnSetup","field":"fields","config":{"label":"Columns","helper":"List of columns to display in the record list"}},{"type":"PageSelect","field":"form","config":{"label":"Record Form","helper":"The form to use for adding\/editing records"}},{"type":"ColorSelect","field":"color","config":{"label":"Text Color","helper":"Set the element's text color","options":[{"value":"text-primary","content":"primary"},{"value":"text-secondary","content":"secondary"},{"value":"text-success","content":"success"},{"value":"text-danger","content":"danger"},{"value":"text-warning","content":"warning"},{"value":"text-info","content":"info"},{"value":"text-light","content":"light"},{"value":"text-dark","content":"dark"}]}},{"type":"ColorSelect","field":"bgcolor","config":{"label":"Background Color","helper":"Set the element's background color","options":[{"value":"alert alert-primary","content":"primary"},{"value":"alert alert-secondary","content":"secondary"},{"value":"alert alert-success","content":"success"},{"value":"alert alert-danger","content":"danger"},{"value":"alert alert-warning","content":"warning"},{"value":"alert alert-info","content":"info"},{"value":"alert alert-light","content":"light"},{"value":"alert alert-dark","content":"dark"}]}},{"type":"FormInput","field":"conditionalHide","config":{"label":"Visibility Rule","helper":"This control is hidden until this expression is true"}},{"type":"FormInput","field":"customCssSelector","config":{"label":"CSS Selector Name","helper":"Use this in your custom css rules","validation":"regex: [-?[_a-zA-Z]+[_-a-zA-Z0-9]*]"}}],"editor-control":"FormText","editor-component":"FormText"},{"label":"File Download","config":{"icon":"fas fa-file-download","name":"recordsFile","label":"Download File Uploaded"},"component":"FileDownload","inspector":[{"type":"FormInput","field":"label","config":{"label":"Label","helper":"The text to display"}},{"type":"FormInput","field":"name","config":{"label":"Name","helper":"The name of the Download"}},{"type":"FormInput","field":"conditionalHide","config":{"label":"Visibility Rule","helper":"This control is hidden until this expression is true"}},{"type":"FormInput","field":"customCssSelector","config":{"label":"CSS Selector Name","helper":"Use this in your custom css rules","validation":"regex: [-?[_a-zA-Z]+[_-a-zA-Z0-9]*]"}}],"editor-control":"FormText","editor-component":"FormText"},{"items":[[{"label":"Submit Button","config":{"icon":"fas fa-share-square","name":"requestStatus","event":"submit","label":"ReUpload File","variant":"primary","fieldValue":"reupload","defaultSubmit":true},"component":"FormButton","inspector":[{"type":"FormInput","field":"label","config":{"label":"Label","helper":"The label describes the button's text"}},{"type":"FormInput","field":"name","config":{"name":"Variable Name","label":"Variable Name","helper":"A variable name is a symbolic name to reference information."}},{"type":"FormMultiselect","field":"event","config":{"label":"Type","helper":"Choose whether the button should submit the form","options":[{"value":"submit","content":"Submit Button"},{"value":"script","content":"Regular Button"}]}},{"type":"FormInput","field":"fieldValue","config":{"label":"Value","helper":"The value being submitted"}},{"type":"FormMultiselect","field":"variant","config":{"label":"Button Variant Style","helper":"The variant determines the appearance of the button","options":[{"value":"primary","content":"Primary"},{"value":"secondary","content":"Secondary"},{"value":"success","content":"Success"},{"value":"danger","content":"Danger"},{"value":"warning","content":"Warning"},{"value":"info","content":"Info"},{"value":"light","content":"Light"},{"value":"dark","content":"Dark"},{"value":"link","content":"Link"}]}},{"type":"FormInput","field":"conditionalHide","config":{"label":"Visibility Rule","helper":"This control is hidden until this expression is true"}},{"type":"FormInput","field":"customCssSelector","config":{"label":"CSS Selector Name","helper":"Use this in your custom css rules","validation":"regex: [-?[_a-zA-Z]+[_-a-zA-Z0-9]*]"}}],"editor-control":"FormSubmit","editor-component":"FormButton"}],[],[{"label":"Submit Button","config":{"icon":"fas fa-share-square","name":"requestStatus","event":"submit","label":"Save File","variant":"primary","fieldValue":"save","defaultSubmit":true},"component":"FormButton","inspector":[{"type":"FormInput","field":"label","config":{"label":"Label","helper":"The label describes the button's text"}},{"type":"FormInput","field":"name","config":{"name":"Variable Name","label":"Variable Name","helper":"A variable name is a symbolic name to reference information."}},{"type":"FormMultiselect","field":"event","config":{"label":"Type","helper":"Choose whether the button should submit the form","options":[{"value":"submit","content":"Submit Button"},{"value":"script","content":"Regular Button"}]}},{"type":"FormInput","field":"fieldValue","config":{"label":"Value","helper":"The value being submitted"}},{"type":"FormMultiselect","field":"variant","config":{"label":"Button Variant Style","helper":"The variant determines the appearance of the button","options":[{"value":"primary","content":"Primary"},{"value":"secondary","content":"Secondary"},{"value":"success","content":"Success"},{"value":"danger","content":"Danger"},{"value":"warning","content":"Warning"},{"value":"info","content":"Info"},{"value":"light","content":"Light"},{"value":"dark","content":"Dark"},{"value":"link","content":"Link"}]}},{"type":"FormInput","field":"conditionalHide","config":{"label":"Visibility Rule","helper":"This control is hidden until this expression is true"}},{"type":"FormInput","field":"customCssSelector","config":{"label":"CSS Selector Name","helper":"Use this in your custom css rules","validation":"regex: [-?[_a-zA-Z]+[_-a-zA-Z0-9]*]"}}],"editor-control":"FormSubmit","editor-component":"FormButton"}]],"label":"Multicolumn \/ Table","config":{"icon":"fas fa-table","label":null,"options":[{"value":"1","content":"4"},{"value":"2","content":"4"},{"value":3,"content":"4"}]},"component":"FormMultiColumn","container":true,"inspector":[{"type":"ContainerColumns","field":"options","config":{"label":"Column Width","helper":null,"validation":"columns-adds-to-12"}},{"type":"ColorSelect","field":"color","config":{"label":"Text Color","helper":"Set the element's text color","options":[{"value":"text-primary","content":"primary"},{"value":"text-secondary","content":"secondary"},{"value":"text-success","content":"success"},{"value":"text-danger","content":"danger"},{"value":"text-warning","content":"warning"},{"value":"text-info","content":"info"},{"value":"text-light","content":"light"},{"value":"text-dark","content":"dark"}]}},{"type":"ColorSelect","field":"bgcolor","config":{"label":"Background Color","helper":"Set the element's background color","options":[{"value":"alert alert-primary","content":"primary"},{"value":"alert alert-secondary","content":"secondary"},{"value":"alert alert-success","content":"success"},{"value":"alert alert-danger","content":"danger"},{"value":"alert alert-warning","content":"warning"},{"value":"alert alert-info","content":"info"},{"value":"alert alert-light","content":"light"},{"value":"alert alert-dark","content":"dark"}]}},{"type":"FormInput","field":"conditionalHide","config":{"label":"Visibility Rule","helper":"This control is hidden until this expression is true"}},{"type":"FormInput","field":"customCssSelector","config":{"label":"CSS Selector Name","helper":"Use this in your custom css rules","validation":"regex: [-?[_a-zA-Z]+[_-a-zA-Z0-9]*]"}}],"editor-control":"FormMultiColumn","editor-component":"MultiColumn"}]},{"name":"Person","items":[{"label":"Nested Screen","config":{"icon":"fas fa-file-invoice","name":null,"event":"submit","label":"Nested Screen","value":null,"screen":221,"variant":"primary"},"component":"FormNestedScreen","inspector":[{"type":"ScreenSelector","field":"screen","config":{"name":"SelectScreen","label":"Screen","helper":"Select a screen"}},{"type":"FormInput","field":"conditionalHide","config":{"label":"Visibility Rule","helper":"This control is hidden until this expression is true"}},{"type":"FormInput","field":"customCssSelector","config":{"label":"CSS Selector Name","helper":"Use this in your custom css rules","validation":"regex: [-?[_a-zA-Z]+[_-a-zA-Z0-9]*]"}}],"editor-control":"FormSubmit","editor-component":"FormNestedScreen"}]}],"computed":[],"custom_css":null,"created_at":"2020-09-22T17:47:37+00:00","updated_at":"2020-09-23T15:28:26+00:00","status":"ACTIVE","key":null,"watchers":null,"categories":[{"id":9,"name":"Blocks","status":"ACTIVE","is_system":0,"created_at":"2020-04-17T19:26:42+00:00","updated_at":"2020-06-19T17:02:31+00:00","pivot":{"assignable_id":223,"category_id":9,"category_type":"ProcessMaker\\Models\\ScreenCategory"}}]}],"screen_categories":[],"scripts":[{"id":58,"key":null,"title":"Read Excel File to Json","description":"Reads an Excel File to JSON","language":"php","code":"<?php \n\/*  \n *  Welcome to ProcessMaker 4 Script Editor \n *  To access Environment Variables use get_env(\"ENV_VAR_NAME\") \n *  To access Request Data use $data \n *  To access Configuration Data use $config \n *  To preview your script, click the Run button using the provided input and config data \n *  Return an array and it will be merged with the processes data \n *  Example API to retrieve user email by their ID $api->users()->getUserById(1)['email'] \n *  API Documentation https:\/\/github.com\/ProcessMaker\/sdk-php#documentation-for-api-endpoints \n *\/\n\n\/\/ Initialise variables\nuse \\PhpOffice\\PhpSpreadsheet\\IOFactory;\n\n$pmheaders = [\n    'Authorization' => 'Bearer ' . getenv('API_TOKEN'),        \n    'Accept'        => 'application\/json',\n];\n$apiHost = getenv('API_HOST');\n$client = new GuzzleHttp\\Client(['verify' => false]);\n$requestId = $data['_request']['id'];\n$fileVariable = $config[\"fileVariableName\"];\n$recordsVariable = $config[\"recordsVariableName\"];\n$records = array();\n$fileProcessStatus = \"Initalised\";\n$file = null;\n\n\n \/\/Get Files in Request\n \n$res = $client->request('GET', $apiHost . \"\/requests\/$requestId\/files\", [\n    'headers' => $pmheaders\n]);\n\n$files = json_decode($res->getBody(), true);\n\nif (isset($files[\"data\"]) && count($files[\"data\"]) > 0){\n    foreach($files[\"data\"] as $fileData) {\n        if ($fileVariable == $fileData[\"custom_properties\"][\"data_name\"]) {\n            $file = $fileData;\n            break;\n        }\n    }\n}\n\n\/\/ Download file\nif ($file === null) {\n    $fileProcessStatus = \"File field not found. Check Process Configuration\";\n} else {\n    $fileId = $file[\"id\"];\n    $filePath = \"\/tmp\/\" . $file[\"file_name\"];\n\n    $res = $client->request('GET', $apiHost . \"\/files\/$fileId\/contents\", [\n        'headers' => $pmheaders,\n        'sink' => $filePath\n    ]);\n\n    $fileProcessStatus = \"File Downloaded\";\n\n    \/\/Read Excel File\n    $spreadsheet = IOFactory::load($filePath);\n\n    $sheetData = $spreadsheet->getActiveSheet()->toArray(null, true, true, false);\n\n    \/\/It is assume sheet has headers matching record columns \n    $headers = $sheetData[0];\n    \n    for ($i = 1; $i < count($sheetData); $i++) {\n        $row = array();\n        for ($j = 0; $j < count($headers); $j++){\n            $row[\"$headers[$j]\"] = $sheetData[$i][$j];\n        }\n        array_push($records, json_decode(json_encode($row), FALSE));\n    }\n\n    $fileProcessStatus = \"File Processed Successfully\";\n}\n\n\n return [\n     \"fileProcessStatus\" => $fileProcessStatus,\n     \"$recordsVariable\" => $records\n ];","timeout":60,"run_as_user_id":1,"created_at":"2020-09-21T23:01:09+00:00","updated_at":"2020-09-23T15:29:14+00:00","status":"ACTIVE","script_category_id":"1","script_executor_id":3,"categories":[{"id":1,"name":"Uncategorized","status":"ACTIVE","is_system":0,"created_at":"2020-06-16T21:25:17+00:00","updated_at":"2020-06-16T21:25:17+00:00","pivot":{"assignable_id":58,"category_id":1,"category_type":"ProcessMaker\\Models\\ScriptCategory"}}]},{"id":59,"key":null,"title":"Save Records to Collection","description":"Saves data from records to a collection","language":"php","code":"<?php \n\/*  \n *  Welcome to ProcessMaker 4 Script Editor \n *  To access Environment Variables use get_env(\"ENV_VAR_NAME\") \n *  To access Request Data use $data \n *  To access Configuration Data use $config \n *  To preview your script, click the Run button using the provided input and config data \n *  Return an array and it will be merged with the processes data \n *  Example API to retrieve user email by their ID $api->users()->getUserById(1)['email'] \n *  API Documentation https:\/\/github.com\/ProcessMaker\/sdk-php#documentation-for-api-endpoints \n *\/\n\n$pmheaders = [\n    'Authorization' => 'Bearer ' . getenv('API_TOKEN'),        \n    'Accept'        => 'application\/json',\n];\n$apiHost = getenv('API_HOST');\n$client = new GuzzleHttp\\Client(['verify' => false]);\n$recordsField = $config[\"recordsVariableName\"];\n$collectionId = $config[\"collectionId\"];\n$count = 0;\n$result = array();\n\n$records = $data[\"$recordsField\"];\n\nif (count($records) > 0) {\n    \/\/post each record to collection\n    foreach($records as $record) {\n        try {\n            $res = $client->request(\"POST\", $apiHost .\"\/collections\/$collectionId\/records\", [\n                \"headers\" => $pmheaders,\n                \"json\" => [\n                    \"data\" => (array) $record\n                    ]\n                ]);\n            $response = json_decode($res->getBody(), true);\n            $result[] = array(\"record\" => $record, \"saveStatus\" => \"Success\", \"recordId\" => $response[\"id\"]);\n        } catch(\\Exception $e) {\n            $result[] = array(\"record\" => $record, \"saveStatus\" => $e->getMessage());\n        }\n    }\n}\nreturn [\"saveResult\" => $result];","timeout":60,"run_as_user_id":1,"created_at":"2020-09-22T17:45:18+00:00","updated_at":"2020-09-23T15:29:14+00:00","status":"ACTIVE","script_category_id":"1","script_executor_id":3,"categories":[{"id":1,"name":"Uncategorized","status":"ACTIVE","is_system":0,"created_at":"2020-06-16T21:25:17+00:00","updated_at":"2020-06-16T21:25:17+00:00","pivot":{"assignable_id":59,"category_id":1,"category_type":"ProcessMaker\\Models\\ScriptCategory"}}]}],"environment_variables":[]}