{"_id":"6810eb537689d3bd70d498d4","title":"FEC_Pub_Rec_v1","name":"fecPubRecV1","path":"fecpubrecv1","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":[{"label":"Company Profile","persistent":"client-only","calculateServer":true,"trigger":{"init":true,"server":true},"dataSrc":"url","fetch":{"url":"{{ config.PAYGOV_ENV }}/public/api/v1/companyprofile/{{ data.agencyFormId }}","method":"get","headers":[{"key":"X-Paygov-Authorization-Token","value":"{{ data.authorizationToken }}"}],"forwardHeaders":true,"authenticate":false},"key":"CompanyDataFromPaygov","type":"datasource","input":true,"tableView":false,"validate":{"multiple":true},"hideOnChildrenHidden":false,"keyModified":true,"multiple":true,"width":12}],"size":"md","width":2,"offset":0,"push":0,"pull":0,"currentWidth":2}],"hideOnChildrenHidden":false,"key":"topOfForm","type":"columns","input":false,"tableView":false,"lockKey":true,"source":"5eac84259b53ff041c170ee7","isNew":true},{"label":"Columns","columns":[{"components":[{"label":"HTML","tag":"img","attrs":[{"attr":"src","value":"{{ config.STATIC_ASSETS_ENV }}/FEC/images/fec_logo.jpg"},{"attr":"title","value":"Federal Election Commission"},{"attr":"alt","value":"Federal Election Commission"}],"refreshOnChange":false,"key":"html1","type":"htmlelement","input":false,"tableView":false,"hideOnChildrenHidden":false}],"width":2,"push":0,"pull":0,"size":"md","offset":0,"currentWidth":2},{"components":[],"width":2,"offset":0,"push":0,"pull":0,"size":"md","currentWidth":2}],"hideOnChildrenHidden":false,"key":"columns1","type":"columns","input":false,"tableView":false},{"label":"HTML","tag":"h3","attrs":[{"attr":"","value":""}],"content":"Federal Election Commission
\nPublic Records Payment","refreshOnChange":false,"key":"html","type":"htmlelement","input":false,"tableView":false},{"label":"HTML","attrs":[{"attr":"","value":""}],"content":"
* Required Field
\r\n \r\n","refreshOnChange":false,"key":"html2","type":"htmlelement","input":false,"tableView":false},{"label":"Name of Requester","applyMaskOn":"change","tableView":true,"validateOn":"blur","validate":{"required":true,"custom":"valid = pgFormioGlobal().validateText(input);","maxLength":255},"key":"partyGivenName","type":"textfield","input":true,"lockKey":true,"source":"5eac84259b53ff041c170ee7","isNew":true},{"label":"Phone Number","applyMaskOn":"change","tableView":true,"validateOn":"blur","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}"},"key":"partyPhone","type":"textfield","input":true,"hideOnChildrenHidden":false,"lockKey":true,"source":"5eac84259b53ff041c170ee7","isNew":true},{"label":"Email Address","tableView":true,"validateOn":"blur","validate":{"required":true,"custom":"valid = pgFormioGlobal().validateEmail(input);"},"key":"partyEmail","type":"textfield","input":true,"hideOnChildrenHidden":false,"lockKey":true,"source":"5eac84253f388e5b14ba3b29","isNew":true},{"label":"Comments or Notes","tableView":true,"validateOn":"blur","validate":{"custom":"valid = pgFormioGlobal().validateText(input);","maxLength":255},"key":"comments","type":"textfield","input":true,"lockKey":true,"source":"5eac84259b53ff041c170ee7","isNew":true},{"label":"Columns","columns":[{"components":[{"label":"Payment Amount","applyMaskOn":"change","mask":false,"spellcheck":true,"tableView":false,"currency":"USD","inputFormat":"plain","truncateMultipleSpaces":false,"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}],"hideOnChildrenHidden":false,"key":"columns2","type":"columns","input":false,"tableView":false},{"label":"Columns","columns":[{"components":[{"label":"CCF 1","calculateValue":"value = data.partyGivenName;","calculateServer":true,"key":"custom_field_1","type":"hidden","input":true,"tableView":false,"hideOnChildrenHidden":false}],"width":2,"offset":0,"push":0,"pull":0,"size":"md","currentWidth":2},{"components":[{"label":"CCF 2","calculateValue":"value = data.partyPhone;","calculateServer":true,"key":"custom_field_2","type":"hidden","input":true,"tableView":false,"hideOnChildrenHidden":false}],"width":2,"offset":0,"push":0,"pull":0,"size":"md","currentWidth":2},{"components":[{"label":"CCF 3","calculateValue":"value = data.partyEmail;","calculateServer":true,"key":"custom_field_3","type":"hidden","input":true,"tableView":false,"hideOnChildrenHidden":false}],"size":"md","width":2,"offset":0,"push":0,"pull":0,"currentWidth":2},{"components":[{"label":"CCF 4","calculateValue":"value = data.comments;","calculateServer":true,"key":"custom_field_4","type":"hidden","input":true,"tableView":false,"hideOnChildrenHidden":false}],"size":"md","width":2,"offset":0,"push":0,"pull":0,"currentWidth":2},{"components":[{"label":"CCF 5","calculateValue":"var amount = data.RemittanceNetAmount;\r\nvalue = (\"$\" + amount.toFixed(2).replace(/(\\d)(?=(\\d{3})+\\.)/g, \"$1,\").toString());","calculateServer":true,"key":"custom_field_5","type":"hidden","input":true,"tableView":false,"hideOnChildrenHidden":false}],"size":"md","width":2,"currentWidth":2},{"components":[{"label":"classification_data1","calculateValue":"value = \"FEC Misc Receipts|\" + data.custom_field_5;","calculateServer":true,"key":"classification_data1","type":"hidden","input":true,"tableView":false,"hideOnChildrenHidden":false}],"size":"md","width":2,"currentWidth":2}],"key":"columns","type":"columns","input":false,"tableView":false,"hideOnChildrenHidden":false},{"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,"hideOnChildrenHidden":false},{"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\"","className":"","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,"customClass":"","hidden":false,"modalEdit":false,"key":"sbu_label","tags":[],"properties":{},"conditional":{"eq":"","json":""},"customConditional":"","logic":[],"attributes":{},"overlay":{"style":"","page":"","left":"","top":"","width":"","height":""},"type":"htmlelement","input":false,"tableView":false,"placeholder":"","prefix":"","suffix":"","multiple":false,"protected":false,"unique":false,"persistent":false,"clearOnHide":true,"refreshOn":"","redrawOn":"","labelPosition":"top","description":"","errorLabel":"","tooltip":"","hideLabel":false,"tabindex":"","disabled":false,"autofocus":false,"dbIndex":false,"customDefaultValue":"","calculateValue":"","calculateServer":false,"validateOn":"change","validate":{"required":false,"custom":"","customPrivate":false,"strictDateValidation":false,"multiple":false,"unique":false},"allowCalculateOverride":false,"encrypted":false,"showCharCount":false,"showWordCount":false,"allowMultipleMasks":false,"id":"e56fbt3"},{"label":"HiddenTestField","calculateValue":"value = \"\";","calculateServer":true,"key":"hiddenTestField","type":"hidden","input":true,"tableView":false,"placeholder":"","prefix":"","customClass":"","suffix":"","multiple":false,"protected":false,"unique":false,"persistent":true,"hidden":false,"clearOnHide":true,"refreshOn":"","redrawOn":"","modalEdit":false,"labelPosition":"top","description":"","errorLabel":"","tooltip":"","hideLabel":false,"tabindex":"","disabled":false,"autofocus":false,"dbIndex":false,"customDefaultValue":"","widget":{"type":"input"},"attributes":{},"validateOn":"change","validate":{"required":false,"custom":"","customPrivate":false,"strictDateValidation":false,"multiple":false,"unique":false},"conditional":{"eq":""},"overlay":{"style":"","left":"","top":"","width":"","height":""},"allowCalculateOverride":false,"encrypted":false,"showCharCount":false,"showWordCount":false,"properties":{},"allowMultipleMasks":false,"inputType":"hidden","id":"em1zpzb"}]}],"settings":{},"properties":{},"created":"2025-04-29T15:08:03.826Z","modified":"2025-04-29T15:08:04.125Z","project":"5f9ae327f1b65987a86350f2","controller":"","revisions":"original","submissionRevisions":"","_vid":0,"_rid":"6810eb537689d3bd70d498ce","_vnote":"(Source version:2, User:cflorea, Build:18820438)","_vuser":"admin","revisionId":"6810eb537689d3bd70d498d4","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}}}}}}}"}