{"_id":"6810eb417689d3bd70d496f4","title":"BFS_Gifts_v1","name":"bfsGiftsV1","path":"bfsgiftsv1","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":true,"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":true,"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":true,"width":12}],"width":2,"offset":0,"push":0,"pull":0,"size":"md","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":true,"keyModified":true,"multiple":true,"width":12}],"width":2,"offset":0,"push":0,"pull":0,"size":"md","currentWidth":2}],"autoAdjust":true,"hideOnChildrenHidden":true,"key":"columns1","type":"columns","input":false,"tableView":false,"lockKey":true,"source":"5eac84259b53ff041c170ee7","isNew":true},{"label":"HTML","tag":"img","attrs":[{"attr":"src","value":"{{ config.STATIC_ASSETS_ENV }}/BFS/images/bfs_logo2.jpg"},{"attr":"alt","value":"BFS Logo"},{"attr":"title","value":"BFS Logo"}],"refreshOnChange":false,"key":"html","type":"htmlelement","input":false,"tableView":false},{"label":"HTML","tag":"h3","attrs":[{"attr":"","value":""}],"content":"
Gifts to the U.S. Government
\n ","refreshOnChange":false,"key":"html1","type":"htmlelement","input":false,"tableView":false},{"label":"HTML","attrs":[{"attr":"","value":""}],"content":"How do I make a contribution to the U.S. Government
\n\n
 ","refreshOnChange":false,"key":"html2","type":"htmlelement","input":false,"tableView":false},{"title":"Donation Information","collapsible":false,"key":"donationInformation","type":"panel","label":"Panel","input":false,"tableView":false,"components":[{"label":"Name","tableView":true,"validate":{"required":true,"custom":"valid = pgFormioGlobal().validateText(input);","maxLength":50},"key":"partyGivenName","type":"textfield","input":true,"hideOnChildrenHidden":false,"lockKey":true,"source":"5eac84253f388e5b14ba3b29","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},{"label":"Address 2","tableView":true,"validate":{"custom":"valid = pgFormioGlobal().validateText(input);","maxLength":100},"key":"partyAddress2","type":"textfield","input":true,"hideOnChildrenHidden":false},{"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,"lockKey":true,"source":"5eac84253f388e5b14ba3b29","isNew":true}],"width":4,"offset":0,"push":0,"pull":0,"size":"md","currentWidth":4},{"components":[{"label":"State","widget":"html5","tableView":true,"dataSrc":"custom","data":{"custom":"values = pgFormioGlobal().states().USA;"},"valueProperty":"stateAbbreviation","template":"{{ item.stateName }}","calculateServer":true,"validate":{"required":true,"onlyAvailableItems":true},"key":"partyState","type":"select","lazyLoad":false,"input":true,"hideOnChildrenHidden":false,"searchThreshold":0.3,"lockKey":true,"source":"5eac84259b53ff041c170ee7","isNew":true}],"width":4,"offset":0,"push":0,"pull":0,"size":"md","currentWidth":4},{"components":[{"label":"Zip","tableView":true,"validate":{"required":true,"custom":"if (input === \"\" || input === undefined || input === null) {\r\n valid = true;\r\n} else {\r\n var regEx = /^\\d{5}(-?\\d{4})?$/;\r\n if (regEx.test(input)) {\r\n var str = input.replace(/-/g, \"\");\r\n str = str.length === 5 ? str : str.substr(0,5) + \"-\" + str.substr(5);\r\n if (typeof instance != \"undefined\") {\r\n \tinstance.setValue(str);\r\n } else {\r\n \tdata[component.key] = str; \r\n }\r\n valid = true;\r\n } else {\r\n valid = \"Invalid Zip Code\";\r\n }\r\n}"},"key":"partyZipcode","type":"textfield","input":true,"hideOnChildrenHidden":false,"lockKey":true,"source":"5eac84259b53ff041c170ee7","isNew":true}],"size":"md","width":4,"offset":0,"push":0,"pull":0,"currentWidth":4}],"key":"columns3","type":"columns","input":false,"tableView":false,"hideOnChildrenHidden":false},{"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":"Daytime Phone Number","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}"},"key":"partyPhone","type":"textfield","input":true,"hideOnChildrenHidden":false,"lockKey":true,"source":"5eac84259b53ff041c170ee7","isNew":true},{"label":"Donation Amount","description":"To save on processing costs, we can only accept gifts over $5.","mask":false,"spellcheck":true,"tableView":false,"currency":"USD","inputFormat":"plain","calculateServer":true,"validate":{"required":true,"custom":"if (input < parseFloat(data.minMax.minAmount)) {\n valid = \"Your payment is below the allowed amount. Please enter a higher dollar amount.\";\n} else if (input > parseFloat(data.minMax.maxAmount)) {\n valid = \"Your payment is above the maximum allowed amount. Please enter a lower dollar amount.\";\n} else {\n valid = true;\n}"},"key":"RemittanceNetAmount","type":"currency","input":true,"delimiter":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\"","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"}]},{"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":"columns","type":"columns","input":false,"tableView":false,"lockKey":true,"source":"5eac84253f388e59f3ba3b2c","isNew":true,"hideOnChildrenHidden":false}],"settings":{},"properties":{},"created":"2021-12-08T19:05:03.009Z","modified":"2025-04-29T15:07:45.897Z","project":"5f9ae327f1b65987a86350f2","controller":"","revisions":"original","submissionRevisions":"","_vid":2,"_rid":"61b101de0b828567704e074e","_vnote":"(Source version:6, User:cflorea, Build:18820438)","_vuser":"admin","revisionId":"6810eb417689d3bd70d496f4","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}}}}}}}"}