{"_id":"68110043ab977e6ea365376d","title":"DOJ_UNICOR_v1","name":"dojUnicorV1","path":"dojunicorv1","type":"form","display":"form","tags":[],"access":[{"type":"read_all","roles":["5f9ae327f1b65926a66350f3","5f9ae327f1b65921a76350f4"]},{"type":"update_all","roles":["5f9ae327f1b65926a66350f3"]}],"submissionAccess":[{"type":"create_all","roles":["5f9ae327f1b65926a66350f3","5f9ae327f1b65921a76350f4"]}],"owner":"5f9acba5f1b659b9e06350e4","components":[{"label":"Top of Form","columns":[{"components":[{"label":"authorizationToken","key":"authorizationToken","type":"hidden","input":true,"tableView":false,"hideOnChildrenHidden":false,"width":12}],"width":2,"offset":0,"push":0,"pull":0,"size":"md","currentWidth":2},{"components":[{"label":"agencyFormId","key":"agencyFormId","type":"hidden","input":true,"tableView":false,"hideOnChildrenHidden":false,"width":12}],"width":2,"offset":0,"push":0,"pull":0,"size":"md","currentWidth":2},{"components":[{"label":"min/max","persistent":"client-only","calculateServer":true,"trigger":{"init":true,"server":true},"dataSrc":"url","fetch":{"url":"{{ config.PAYGOV_ENV }}/public/api/v1/minmaxamount/{{ data.agencyFormId }}","method":"get","headers":[{"key":"X-Paygov-Authorization-Token","value":"{{ data.authorizationToken }}"}],"forwardHeaders":true,"authenticate":false},"key":"minMax","type":"datasource","input":true,"tableView":false,"hideOnChildrenHidden":false,"width":12}],"size":"md","width":2,"offset":0,"push":0,"pull":0,"currentWidth":2},{"components":[],"size":"md","width":2,"offset":0,"push":0,"pull":0,"currentWidth":2}],"key":"topOfForm","type":"columns","input":false,"tableView":false,"lockKey":true,"source":"5eac84259b53ff041c170ee7","isNew":true},{"label":"Logo","tag":"img","attrs":[{"attr":"src","value":"{{ config.STATIC_ASSETS_ENV }}/DOJ/images/unicorlogo.gif"},{"attr":"alt","value":"UNICOR - Federal Prison Industries, Inc"},{"attr":"title","value":"UNICOR - Federal Prison Industries, Inc"}],"refreshOnChange":false,"key":"logo","type":"htmlelement","tableView":false,"input":false,"hideOnChildrenHidden":false,"hideLabel":true},{"label":"HTML","tag":"H3","attrs":[{"attr":"","value":""}],"content":"FPI Electronic Transfer Funds Payment Form
 ","refreshOnChange":false,"key":"html","type":"htmlelement","tableView":false,"input":false,"hideOnChildrenHidden":false,"hideLabel":true},{"label":"HTML","attrs":[{"attr":"","value":""}],"content":"* Required Field
 ","refreshOnChange":true,"key":"html1","type":"htmlelement","tableView":false,"input":false,"hideLabel":true},{"label":"Columns","columns":[{"components":[{"label":"First Name","tableView":true,"validate":{"required":true,"custom":"valid = pgFormioGlobal().validateText(input);","maxLength":50},"key":"partyGivenName","type":"textfield","input":true,"hideOnChildrenHidden":false,"validateOn":"blur"}],"width":6,"offset":0,"push":0,"pull":0,"size":"md","currentWidth":6},{"components":[{"label":"Last Name","tableView":true,"validate":{"required":true,"custom":"valid = pgFormioGlobal().validateText(input);","maxLength":50},"key":"partySurName","type":"textfield","input":true,"hideOnChildrenHidden":false,"validateOn":"blur"}],"width":6,"offset":0,"push":0,"pull":0,"size":"md","currentWidth":6}],"key":"columns1","type":"columns","input":false,"tableView":false,"path":"columns","lockKey":true,"source":"5eac84253f388e5b14ba3b29","isNew":true},{"label":"Company Name","tableView":true,"validateOn":"blur","validate":{"custom":"valid = pgFormioGlobal().validateText(input);","maxLength":100},"key":"partyCompanyName","type":"textfield","input":true,"lockKey":true,"source":"5eac84259b53ff041c170ee7","isNew":true},{"label":"Address 1","tableView":true,"validate":{"required":true,"custom":"valid = pgFormioGlobal().validateText(input);","maxLength":100},"key":"partyAddress1","type":"textfield","input":true,"hideOnChildrenHidden":false,"validateOn":"blur"},{"label":"Address 2","tableView":true,"validate":{"custom":"valid = pgFormioGlobal().validateText(input);","maxLength":100},"key":"partyAddress2","type":"textfield","input":true,"hideOnChildrenHidden":false,"validateOn":"blur"},{"label":"Columns","columns":[{"components":[{"label":"Country","widget":"html5","tableView":true,"dataSrc":"custom","defaultValue":"USA","data":{"custom":"values = pgFormioGlobal().countries();"},"dataType":"string","valueProperty":"alpha3Code","template":"{{ item.countryName }}","calculateServer":true,"validate":{"required":true,"onlyAvailableItems":true},"key":"partyCountry","type":"select","lazyLoad":false,"limit":5000,"input":true,"hideOnChildrenHidden":false,"lockKey":true,"source":"5eac84253f388e5b14ba3b29","isNew":true}],"width":6,"offset":0,"push":0,"pull":0,"size":"md","currentWidth":6},{"components":[],"width":6,"offset":0,"push":0,"pull":0,"size":"md","currentWidth":6}],"key":"columns3","type":"columns","input":false,"tableView":false,"path":"columns2","lockKey":true,"source":"5eac84253f388e5b14ba3b29","isNew":true},{"label":"Columns","columns":[{"components":[{"label":"City","tableView":true,"validate":{"required":true,"custom":"valid = pgFormioGlobal().validateText(input);","maxLength":50},"key":"partyCity","type":"textfield","input":true,"hideOnChildrenHidden":false,"validateOn":"blur"}],"width":4,"offset":0,"push":0,"pull":0,"size":"md","currentWidth":4},{"components":[{"label":"State/Province","widget":"html5","tableView":true,"dataSrc":"custom","data":{"custom":"if (data.partyCountry === \"USA\") {\n values = pgFormioGlobal().states().USA;\n} else if (data.partyCountry === \"CAN\") {\n values = pgFormioGlobal().states().CAN;\n}"},"valueProperty":"stateAbbreviation","template":"{{ item.stateName }}","refreshOn":"partyCountry","clearOnRefresh":true,"calculateServer":true,"validate":{"required":true,"onlyAvailableItems":true},"key":"partyState","customConditional":"show = data.partyCountry === \"USA\" || data.partyCountry === \"CAN\";","type":"select","lazyLoad":false,"input":true,"hideOnChildrenHidden":false,"lockKey":true,"source":"5eac84253f388e5b14ba3b29","isNew":true},{"label":"State/Province","tableView":true,"validate":{"custom":"valid = pgFormioGlobal().validateText(input);","maxLength":50},"key":"partyForeignState","customConditional":"show = data.partyCountry !== \"USA\" && data.partyCountry !== \"CAN\";","type":"textfield","input":true,"hideOnChildrenHidden":false,"validateOn":"blur"}],"width":4,"offset":0,"push":0,"pull":0,"size":"md","currentWidth":4},{"components":[{"label":"Zip Code","tableView":true,"case":"uppercase","validate":{"required":true,"custom":"var val = input;\r\n\r\nif (input === \"\" || input === undefined || input === null) {\r\n valid = true;\r\n} else {\r\n if (data.partyCountry === \"USA\") {\r\n var regEx = /^\\d{5}(-?\\d{4})?$/;\r\n if (regEx.test(input)) {\r\n var str = input.replace(/-/g, \"\");\r\n val = str.length === 5 ? str : str.substr(0,5) + \"-\" + str.substr(5);\r\n valid = true;\r\n } else {\r\n valid = \"Invalid Zip Code\";\r\n }\r\n } else if (data.partyCountry === \"CAN\") {\r\n var regEx = /^[a-z]\\d[a-z] ?\\d[a-z]\\d$/i;\r\n if (regEx.test(input)) {\r\n str = input.replace(/\\s/g, \"\");\r\n val = str.substr(0,3) + \" \" + str.substr(3);\r\n valid = true;\r\n } else {\r\n valid = \"Invalid Postal Code\";\r\n }\r\n } else {\r\n valid = pgFormioGlobal().validateText(input);\r\n }\r\n}\r\n\r\nif (typeof instance != \"undefined\") {\r\n\tinstance.setValue(val);\r\n} else {\r\n data[component.key] = val; \r\n}","maxLength":10},"key":"partyZipcode","logic":[{"name":"Make Optional","trigger":{"type":"javascript","javascript":"result = data.partyCountry !== \"USA\" && data.partyCountry !== \"CAN\";"},"actions":[{"name":"Not Required","type":"property","property":{"label":"Required","value":"validate.required","type":"boolean"},"state":false},{"name":"Set Label","type":"property","property":{"label":"Label","value":"label","type":"string"},"text":"Zip or Postal Code"}]}],"type":"textfield","input":true,"hideOnChildrenHidden":false,"validateOn":"blur"}],"width":4,"offset":0,"push":0,"pull":0,"size":"md","currentWidth":4}],"key":"columns4","type":"columns","input":false,"tableView":false,"path":"columns1","lockKey":true,"source":"5eac84253f388e5b14ba3b29","isNew":true},{"label":"Columns","columns":[{"components":[{"label":"Phone","tableView":true,"validate":{"custom":"if (input === \"\" || input === null || input === undefined) {\r\n valid = true;\r\n} else {\r\n var regEx = /^\\(?\\d{3}\\)?\\s?-?\\d{3}-?\\d{4}$/;\r\n if (!regEx.test(input)) {\r\n valid = \"Invalid Telephone Number\";\r\n } else {\r\n var str = input.replace(/[^\\d]/g, \"\");\r\n var newValue = \"(\"+ str.substr(0,3) + \") \" + str.substr(3,3) + \"-\" + str.substr(6);\r\n if (typeof instance != \"undefined\") {\r\n instance.setValue(newValue);\r\n }\r\n else {\r\n data[component.key] = newValue;\r\n }\r\n valid = true;\r\n }\r\n}","required":true},"key":"partyPhone","type":"textfield","input":true,"hideOnChildrenHidden":false,"validateOn":"blur"}],"width":6,"offset":0,"push":0,"pull":0,"size":"md","currentWidth":6},{"components":[{"label":"Extension","tableView":true,"validate":{"custom":"var regEx = /^\\d{1,8}$/;\nvalid = (_.isEmpty(input) || regEx.test(input)) ? true : \"Invalid Telephone Extension\";"},"key":"Extension","type":"textfield","input":true,"hideOnChildrenHidden":false}],"width":6,"offset":0,"push":0,"pull":0,"size":"md","currentWidth":6}],"key":"columns5","type":"columns","input":false,"tableView":false,"path":"columns3","lockKey":true,"source":"5eac84253f388e5b14ba3b29","isNew":true},{"label":"Columns","columns":[{"components":[{"label":"Email Address","tableView":true,"validate":{"required":true,"custom":"valid = pgFormioGlobal().validateEmail(input);"},"key":"partyEmail","type":"textfield","input":true,"hideOnChildrenHidden":false,"validateOn":"blur"},{"label":"Customer Number","tableView":true,"validateOn":"blur","validate":{"custom":"valid = pgFormioGlobal().validateText(input);","maxLength":50},"key":"CustomerNumber","type":"textfield","input":true,"lockKey":true,"source":"5eac84259b53ff041c170ee7","isNew":true,"hideOnChildrenHidden":false},{"label":"Reference (Customer use)","tableView":true,"validateOn":"blur","validate":{"custom":"valid = pgFormioGlobal().validateText(input);","maxLength":50},"key":"Reference","type":"textfield","input":true,"lockKey":true,"source":"5eac84259b53ff041c170ee7","isNew":true,"hideOnChildrenHidden":false},{"label":"Invoice Number(s)","tableView":true,"validateOn":"blur","validate":{"custom":"valid = pgFormioGlobal().validateText(input);","maxLength":50},"key":"InvoiceNumber","type":"textfield","input":true,"lockKey":true,"source":"5eac84259b53ff041c170ee7","isNew":true,"hideOnChildrenHidden":false},{"label":"Payment Amount","mask":false,"spellcheck":true,"tableView":false,"currency":"USD","inputFormat":"plain","validateOn":"blur","validate":{"required":true,"custom":"if (_.isNil(input)) {\r\n valid = true;\r\n} else {\r\n if (!_.isEmpty(data.minMax)) {\r\n if (input < parseFloat(data.minMax.minAmount)) {\r\n \t valid = \"Your payment is below the allowed amount. Please enter a higher dollar amount.\";\r\n \t } else if (input > parseFloat(data.minMax.maxAmount)) {\r\n \t valid = \"Your payment is above the maximum allowed amount. Please enter a lower dollar amount.\";\r\n \t } else {\r\n \t valid = true;\r\n \t}\r\n\t}\r\n}"},"key":"RemittanceNetAmount","type":"currency","input":true,"delimiter":true,"hideOnChildrenHidden":false,"lockKey":true,"source":"5eac84259b53ff041c170ee7","isNew":true}],"width":6,"offset":0,"push":0,"pull":0,"size":"md","currentWidth":6},{"components":[],"width":6,"offset":0,"push":0,"pull":0,"size":"md","currentWidth":6}],"key":"columns6","type":"columns","input":false,"tableView":false,"lockKey":true,"source":"5eac84259b53ff041c170ee7","isNew":true},{"label":"Standard Buttons","columns":[{"components":[{"label":"Continue","showValidations":false,"block":true,"customClass":"usa-button","tableView":false,"key":"submit","customConditional":"show = !data.showReassignButton ? true : data.showSubmitButton;","type":"button","input":true,"hideOnChildrenHidden":false}],"width":2,"offset":0,"push":0,"pull":0,"size":"md","currentWidth":2},{"components":[{"label":"View PDF","action":"event","showValidations":false,"block":true,"customClass":"usa-button usa-button--outline","tableView":false,"key":"viewPdf","attributes":{"class":"usa-button--outline"},"type":"button","event":"viewPdf","input":true,"hideOnChildrenHidden":false}],"width":2,"offset":0,"push":0,"pull":0,"size":"md","currentWidth":2},{"components":[{"label":"Save","action":"event","showValidations":false,"block":true,"customClass":"usa-button usa-button--outline","tableView":false,"key":"save","customConditional":"show = data.showSaveButton;","type":"button","event":"save","input":true,"hideOnChildrenHidden":false}],"size":"md","width":2,"offset":0,"push":0,"pull":0,"currentWidth":2},{"components":[{"label":"Reassign","action":"event","showValidations":false,"block":true,"customClass":"usa-button usa-button--outline","tableView":false,"key":"reassign","customConditional":"show = data.showReassignButton;","type":"button","event":"reassign","input":true,"hideOnChildrenHidden":false}],"size":"md","width":2,"offset":0,"push":0,"pull":0,"currentWidth":2},{"components":[],"size":"md","width":2,"offset":0,"push":0,"pull":0,"currentWidth":2},{"components":[],"size":"md","width":2,"offset":0,"push":0,"pull":0,"currentWidth":2}],"key":"standardButtons","type":"columns","input":false,"tableView":false,"lockKey":true,"source":"5eac84253f388e59f3ba3b2c","isNew":true},{"label":"SBU Footer","tableView":true,"form":"5fc7c311de457463ee152fb3","reference":false,"key":"sbuFooter","customConditional":"show = instance.options.pdf;","type":"form","input":true,"lockKey":true,"source":"5eac84259b53ff041c170ee7","isNew":true,"revision":0,"components":[{"label":"HTML","tag":"p style=\"font-size: 11px\"","attrs":[{"attr":"","value":""}],"content":"

\r\n\r\nThe content of this document may contain Sensitive But Unclassified (SBU) data and/or Controlled Unclassified Information (CUI).\r\n","refreshOnChange":false,"key":"sbu_label","type":"htmlelement","input":false,"tableView":false},{"label":"HiddenTestField","calculateValue":"value = \"\";","calculateServer":true,"key":"hiddenTestField","type":"hidden","input":true,"tableView":false}]}],"settings":{},"properties":{},"created":"2022-01-28T20:00:31.190Z","modified":"2025-04-29T16:37:23.498Z","project":"5f9ae327f1b65987a86350f2","controller":"","revisions":"original","submissionRevisions":"","_vid":2,"_rid":"61f44b5f244c94b2a8ffac6d","_vnote":"(Source version:4, User:cflorea, Build:18821716)","_vuser":"admin","revisionId":"68110043ab977e6ea365376d","config":{"PAYGOV_ENV":"https://www.pay.gov","STATIC_ASSETS_ENV":"https://www.pay.gov/public/static-assets/paygov","COMPANY_PROFILE":"public/api/v1/companyprofile","MIN_MAX_AMOUNT":"public/api/v1/minmaxamount","GET_COUNTRIES":"public/api/v1/getCountries","GET_STATES":"public/api/v1/getStates"},"module":"{options:{form:{evalContext:{pgFormioGlobal:function(){function o(a,e,t,o){if(a=a&&a.replace(e,\"\")){if(t)return t;t=(o||\"Input\")+\" contains invalid \";e=a.replace(/[\\x00-\\x20\\x7F]/g,\"\");return 1===e.length?t+=e+\" \":1e.length&&((o=a.replace(/[^ ]/g,\"\")).length?a.length===e.length+o.length?t+=e.length?\"and space \":\"space \":t+=\"space and non-printable \":t+=e.length?\"and non-printable \":\"non-printable \"),t+\"character\"+(1parseFloat(e.maxAmount))return\"Your payment is above the maximum allowed amount. Please enter a lower dollar amount.\"}return!0}}}}}}}"}