{"_id":"6900c476159290a6ef210111","title":"VA_VISN17_v4","name":"vaVisn17V4","path":"vavisn17v4","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":"columns3","type":"columns","input":false,"tableView":false,"lockKey":true,"source":"5eac84259b53ff041c170ee7","isNew":true},{"label":"HTML","tag":"img","attrs":[{"attr":"src","value":"{{ config.STATIC_ASSETS_ENV }}/VAVISN/images/visn17_logo.jpg"},{"attr":"alt","value":"VA Capital Health Care Network VISN 17"},{"attr":"title","value":"VA Capital Health Care Network VISN 17"},{"attr":"style","value":"max-width: 500px;"}],"refreshOnChange":false,"key":"html1","type":"htmlelement","input":false,"tableView":false},{"label":"HTML","tag":"h3","attrs":[{"attr":"","value":""}],"content":"VA HEART OF TEXAS HEALTH CARE NETWORK
\n ","refreshOnChange":false,"key":"html","type":"htmlelement","input":false,"tableView":false},{"label":"HTML","attrs":[{"attr":"","value":""}],"content":"Welcome to the Department of Veterans Affairs Heart of Texas Health Care Network donation page. The VA Heart of Texas Health Care Network serves Amarillo, Dallas, El Paso, Harlingen, San Antonio and Temple. Please click on the facility to which you would like to donate.
\n\n* Required Field
","refreshOnChange":false,"key":"html2","type":"htmlelement","input":false,"tableView":false,"hideOnChildrenHidden":false},{"label":"Columns","columns":[{"components":[{"label":"Facility","widget":"html5","tableView":true,"dataSrc":"custom","data":{"custom":"list = [\r\n {\r\n \"label\": \"Central Texas Veterans Health Care System\",\r\n \"locationCode\": \"674\",\r\n \"name\": \"Central Texas Veterans Health Care System\",\r\n \"title\": \"Central Texas Veterans Health Care System\",\r\n \"image\": \"visn17_central_texas.jpg\",\r\n \"maxWidth\" : \"250\"\r\n },\r\n {\r\n \"label\": \"Amarillo VA Health Care System - Lubbock Outpatient Clinic\",\r\n \"locationCode\": \"504BY\",\r\n \"name\": \"Amarillo VA Health Care System - Lubbock Outpatient Clinic\",\r\n \"title\": \"Amarillo VA Health Care System - Lubbock Outpatient Clinic\",\r\n \"image\": \"visn_logo.jpg\",\r\n \"maxWidth\" : \"250\"\r\n },\r\n \r\n {\r\n \"label\": \"VA North Texas Health Care System\",\r\n \"locationCode\": \"549\",\r\n \"name\": \"VA North Texas Health Care System\",\r\n \"title\": \"VA North Texas Health Care System\",\r\n \"image\": \"visn17_north_texas.jpg\",\r\n \"maxWidth\" : \"250\"\r\n },\r\n {\r\n \"label\": \"South Texas Veterans Health Care System\",\r\n \"locationCode\": \"671\",\r\n \"name\": \"South Texas Veterans Health Care System\",\r\n \"title\": \"South Texas Veterans Health Care System\",\r\n \"image\": \"visn17_south_texas.jpg\",\r\n \"maxWidth\" : \"250\"\r\n },\r\n {\r\n \"label\": \"VA Texas Valley Coastal Bend Health Care System\",\r\n \"locationCode\": \"740\",\r\n \"name\": \"VA Texas Valley Coastal Bend Health Care System\",\r\n \"title\": \"VA Texas Valley Coastal Bend Health Care System\",\r\n \"image\": \"visn17_valley_texas.jpg\",\r\n \"maxWidth\" : \"250\"\r\n },\r\n {\r\n \"label\": \"Amarillo VA Health Care System\",\r\n \"locationCode\": \"504\",\r\n \"name\": \"Amarillo VA Health Care System\",\r\n \"title\": \"Amarillo VA Health Care System\",\r\n \"image\": \"visn17_amarillo.jpg\",\r\n \"maxWidth\" : \"250\"\r\n },\r\n {\r\n \"label\": \"El Paso VA Healthcare System\",\r\n \"locationCode\": \"756\",\r\n \"name\": \"El Paso VA Healthcare System\",\r\n \"title\": \"El Paso VA Healthcare System\",\r\n \"image\": \"visn17_elpaso.jpg\",\r\n \"maxWidth\" : \"250\"\r\n },\r\n {\r\n \"label\": \"West Texas VA Health Care System\",\r\n \"locationCode\": \"519\",\r\n \"name\": \"West Texas VA Health Care System\",\r\n \"title\": \"West Texas VA Health Care System\",\r\n \"image\": \"visn17_westtexas.jpg\",\r\n \"maxWidth\" : \"250\"\r\n }\r\n];\r\n\r\nvalues = _.sortBy(list, \"label\")"},"dataType":"string","valueProperty":"locationCode","validate":{"required":true,"onlyAvailableItems":true},"key":"FacilityList","type":"select","input":true,"hideOnChildrenHidden":false,"searchThreshold":0.3}],"width":6,"offset":0,"push":0,"pull":0,"size":"md","currentWidth":6},{"components":[{"label":"Facility","calculateValue":"switch (data.FacilityList) {\r\n\tcase \"674\" :\r\n value = {\r\n \"label\": \"Central Texas Veterans Health Care System\",\r\n \"locationCode\": \"674\",\r\n \"name\": \"Central Texas Veterans Health Care System\",\r\n \"title\": \"Central Texas Veterans Health Care System\",\r\n \"image\": \"visn17_central_texas.jpg\",\r\n \"maxWidth\" : \"250\"\r\n };\r\n break;\r\n case \"504BY\" :\r\n value = {\r\n \"label\": \"Amarillo VA Health Care System - Lubbock Outpatient Clinic\",\r\n \"locationCode\": \"504BY\",\r\n \"name\": \"Amarillo VA Health Care System - Lubbock Outpatient Clinic\",\r\n \"title\": \"Amarillo VA Health Care System - Lubbock Outpatient Clinic\",\r\n \"image\": \"visn_logo.jpg\",\r\n \"maxWidth\" : \"250\"\r\n };\r\n break;\r\n case \"549\" :\r\n value = {\r\n \"label\": \"VA North Texas Health Care System\",\r\n \"locationCode\": \"549\",\r\n \"name\": \"VA North Texas Health Care System\",\r\n \"title\": \"VA North Texas Health Care System\",\r\n \"image\": \"visn17_north_texas.jpg\",\r\n \"maxWidth\" : \"250\"\r\n };\r\n break;\r\n case \"671\" :\r\n value = {\r\n \"label\": \"South Texas Veterans Health Care System\",\r\n \"locationCode\": \"671\",\r\n \"name\": \"South Texas Veterans Health Care System\",\r\n \"title\": \"South Texas Veterans Health Care System\",\r\n \"image\": \"visn17_south_texas.jpg\",\r\n \"maxWidth\" : \"250\"\r\n };\r\n break;\r\n case \"740\" :\r\n value = {\r\n \"label\": \"VA Texas Valley Coastal Bend Health Care System\",\r\n \"locationCode\": \"740\",\r\n \"name\": \"VA Texas Valley Coastal Bend Health Care System\",\r\n \"title\": \"VA Texas Valley Coastal Bend Health Care System\",\r\n \"image\": \"visn17_valley_texas.jpg\",\r\n \"maxWidth\" : \"250\"\r\n };\r\n break;\r\n case \"504\" :\r\n value = {\r\n \"label\": \"Amarillo VA Health Care System\",\r\n \"locationCode\": \"504\",\r\n \"name\": \"Amarillo VA Health Care System\",\r\n \"title\": \"Amarillo VA Health Care System\",\r\n \"image\": \"visn17_amarillo.jpg\",\r\n \"maxWidth\" : \"250\"\r\n };\r\n break;\r\n case \"756\" :\r\n value = {\r\n \"label\": \"El Paso VA Healthcare System\",\r\n \"locationCode\": \"756\",\r\n \"name\": \"El Paso VA Healthcare System\",\r\n \"title\": \"El Paso VA Healthcare System\",\r\n \"image\": \"visn17_elpaso.jpg\",\r\n \"maxWidth\" : \"250\"\r\n };\r\n break;\r\n case \"519\" :\r\n value = {\r\n \"label\": \"West Texas VA Health Care System\",\r\n \"locationCode\": \"519\",\r\n \"name\": \"West Texas VA Health Care System\",\r\n \"title\": \"West Texas VA Health Care System\",\r\n \"image\": \"visn17_westtexas.jpg\",\r\n \"maxWidth\" : \"250\"\r\n };\r\n break;\r\n \r\n default: \r\n value = \"\"; \r\n break;\r\n}","calculateServer":true,"key":"Facility","type":"hidden","input":true,"tableView":false,"hideOnChildrenHidden":false}],"width":2,"offset":0,"push":0,"pull":0,"size":"md","currentWidth":2},{"components":[],"size":"md","width":2,"offset":0,"push":0,"pull":0,"currentWidth":2}],"key":"columns","type":"columns","input":false,"tableView":false,"hideOnChildrenHidden":false},{"title":"Donation Information","collapsible":false,"key":"donationInformation","customConditional":"show = !_.isEmpty(data.Facility.locationCode);","type":"panel","label":"Donation Information","input":false,"tableView":false,"components":[{"label":"HTML","tag":"img","attrs":[{"attr":"src","value":"{{ config.STATIC_ASSETS_ENV }}/VAVISN/images/{{ data.Facility.image }}"},{"attr":"alt","value":"VISN Logo"},{"attr":"title","value":"VISN Logo"},{"attr":"style","value":"max-width: 250px;"}],"refreshOnChange":false,"key":"html1","type":"htmlelement","input":false,"tableView":false,"refreshOn":"Facility"},{"label":"HTML","attrs":[{"attr":"","value":""}],"content":"
Welcome to the {{ data.Facility.title }} donation page.
\r\nPlease use the drop-down menu to select the program in which you would like your donation to be used. If you do not have a specific use in mind, you may donate money for general use. Those funds are used to fund programs for veterans throughout the {{ data.Facility.title }}.
","refreshOnChange":true,"key":"html4","type":"htmlelement","input":false,"tableView":false},{"label":"Columns","columns":[{"components":[{"label":"Name","tableView":true,"validate":{"required":true,"custom":"valid = pgFormioGlobal().validateText(input);","maxLength":100},"key":"Name_Field","type":"textfield","input":true,"lockKey":true,"source":"5eac84259b53ff041c170ee7","isNew":true,"hideOnChildrenHidden":false},{"label":"Street Address","tableView":true,"validate":{"required":true,"custom":"valid = pgFormioGlobal().validateText(input);","maxLength":100},"key":"partyAddress1","type":"textfield","input":true,"hideOnChildrenHidden":false},{"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},{"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},{"label":"Zip Code","tableView":true,"validate":{"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}","required":true},"key":"partyZipcode","type":"textfield","input":true,"hideOnChildrenHidden":false,"lockKey":true,"source":"5eac84259b53ff041c170ee7","isNew":true},{"label":"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":"Program for Donation","widget":"html5","tableView":true,"dataSrc":"custom","data":{"custom":"var temp = [\r\n {\r\n \"locationCode\" : \"504\",\r\n \"label\" : \"General Purpose\",\r\n \"value\" : \"8180\"\r\n },\r\n {\r\n \"locationCode\" : \"504BY\",\r\n \"label\" : \"General Purpose\",\r\n \"value\" : \"8107\"\r\n },\r\n {\r\n \"locationCode\" : \"519\",\r\n \"label\" : \"Homeless Veterans\",\r\n \"value\" : \"8176\"\r\n },\r\n {\r\n \"locationCode\" : \"519\",\r\n \"label\" : \"Recreation Fund\",\r\n \"value\" : \"8189\"\r\n },\r\n {\r\n \"locationCode\" : \"519\",\r\n \"label\" : \"Women Veterans Support Fund\",\r\n \"value\" : \"8207\"\r\n },\r\n {\r\n \"locationCode\" : \"519\",\r\n \"label\" : \"Christmas Fund\",\r\n \"value\" : \"8184\"\r\n },\r\n {\r\n \"locationCode\" : \"549\",\r\n \"label\" : \"Dallas General Purpose\",\r\n \"value\" : \"2077\"\r\n },\r\n {\r\n \"locationCode\" : \"549\",\r\n \"label\" : \"Dallas Fisher House\",\r\n \"value\" : \"2096\"\r\n },\r\n {\r\n \"locationCode\" : \"549\",\r\n \"label\" : \"Fort Worth Outpatient Clinic General Purpose\",\r\n \"value\" : \"2047\"\r\n },\r\n {\r\n \"locationCode\" : \"549\",\r\n \"label\" : \"Dallas Homeless Veterans Program\",\r\n \"value\" : \"2053\"\r\n },\r\n {\r\n \"locationCode\" : \"549\",\r\n \"label\" : \"Dallas Homeless Stand Down\",\r\n \"value\" : \"2068\"\r\n },\r\n {\r\n \"locationCode\" : \"549\",\r\n \"label\" : \"Bonham Patient Comfort \",\r\n \"value\" : \"4080\"\r\n },\r\n {\r\n \"locationCode\" : \"549\",\r\n \"label\" : \"Dallas Patient Comfort \",\r\n \"value\" : \"2016\"\r\n },\r\n {\r\n \"locationCode\" : \"549\",\r\n \"label\" : \"Dallas Social Welfare\",\r\n \"value\" : \"2010\"\r\n },\r\n {\r\n \"locationCode\" : \"549\",\r\n \"label\" : \"Bonham Social Welfare\",\r\n \"value\" : \"4060\"\r\n },\r\n {\r\n \"locationCode\" : \"549\",\r\n \"label\" : \"Veterans Day Celebration\",\r\n \"value\" : \"4170\"\r\n },\r\n {\r\n \"locationCode\" : \"549\",\r\n \"label\" : \"Garland General Purpose\",\r\n \"value\" : \"2105\"\r\n },\r\n {\r\n \"locationCode\" : \"549\",\r\n \"label\" : \"Arlington Vet Center\",\r\n \"value\" : \"2050\"\r\n },\r\n {\r\n \"locationCode\" : \"671\",\r\n \"label\" : \"General Purpose - San Antonio\",\r\n \"value\" : \"7006\"\r\n },\r\n {\r\n \"locationCode\" : \"671\",\r\n \"label\" : \"General Purpose - Kerrville\",\r\n \"value\" : \"1007\"\r\n },\r\n {\r\n \"locationCode\" : \"671\",\r\n \"label\" : \"Homeless Program - San Antonio\",\r\n \"value\" : \"7008\"\r\n },\r\n {\r\n \"locationCode\" : \"671\",\r\n \"label\" : \"Memorial Services Detachment\",\r\n \"value\" : \"7031\"\r\n },\r\n {\r\n \"locationCode\" : \"671\",\r\n \"label\" : \"South Texas Fisher House\",\r\n \"value\" : \"7053\"\r\n },\r\n {\r\n \"locationCode\" : \"671\",\r\n \"label\" : \"South Texas Volunteer Services Committee\",\r\n \"value\" : \"7021\"\r\n },\r\n {\r\n \"locationCode\" : \"671\",\r\n \"label\" : \"Cultural Transformation - Kerrville\",\r\n \"value\" : \"1012\"\r\n },\r\n {\r\n \"locationCode\" : \"671\",\r\n \"label\" : \"Recreation Therapy General Purpose\",\r\n \"value\" : \"7023\"\r\n },\r\n {\r\n \"locationCode\" : \"671\",\r\n \"label\" : \"Food Security Program\",\r\n \"value\" : \"7046\"\r\n },\r\n {\r\n \"locationCode\" : \"674\",\r\n \"label\" : \"Austin General Purpose\",\r\n \"value\" : \"8205\"\r\n },\r\n {\r\n \"locationCode\" : \"674\",\r\n \"label\" : \"Temple General Purpose\",\r\n \"value\" : \"8607\"\r\n },\r\n {\r\n \"locationCode\" : \"674\",\r\n \"label\" : \"Waco General Purpose\",\r\n \"value\" : \"8601\"\r\n },\r\n {\r\n \"locationCode\" : \"674\",\r\n \"label\" : \"Homeless Program\",\r\n \"value\" : \"8218\"\r\n },\r\n {\r\n \"locationCode\" : \"674\",\r\n \"label\" : \"Hospice Program\",\r\n \"value\" : \"8603\"\r\n },\r\n {\r\n \"locationCode\" : \"674\",\r\n \"label\" : \"Killeen Vet Center\",\r\n \"value\" : \"8221\"\r\n },\r\n {\r\n \"locationCode\" : \"674\",\r\n \"label\" : \"Women's Program\",\r\n \"value\" : \"8614\"\r\n },\r\n {\r\n \"locationCode\" : \"674\",\r\n \"label\" : \"Social Work Services\",\r\n \"value\" : \"8201\"\r\n },\r\n {\r\n \"locationCode\" : \"674\",\r\n \"label\" : \"Temple Recreation Therapy\",\r\n \"value\" : \"8302\"\r\n },\r\n {\r\n \"locationCode\" : \"674\",\r\n \"label\" : \"Waco Recreation Therapy\",\r\n \"value\" : \"8303\"\r\n },\r\n {\r\n \"locationCode\" : \"674\",\r\n \"label\" : \"Warrior Closet\",\r\n \"value\" : \"8222\"\r\n },\r\n {\r\n \"locationCode\" : \"674\",\r\n \"label\" : \"National Games\",\r\n \"value\" : \"8306\"\r\n },\r\n {\r\n \"locationCode\" : \"674\",\r\n \"label\" : \"Blind Rehabilitation\",\r\n \"value\" : \"8605\"\r\n },\r\n {\r\n \"locationCode\" : \"740\",\r\n \"label\" : \"Patient Welfare\",\r\n \"value\" : \"7003\"\r\n },\r\n {\r\n \"locationCode\" : \"740\",\r\n \"label\" : \"Recreational Activities\",\r\n \"value\" : \"7005\"\r\n },\r\n {\r\n \"locationCode\" : \"740\",\r\n \"label\" : \"Welcome Home/Transition Program\",\r\n \"value\" : \"7004\"\r\n },\r\n {\r\n \"locationCode\" : \"740\",\r\n \"label\" : \"Caregiver Program\",\r\n \"value\" : \"7006\"\r\n },\r\n {\r\n \"locationCode\" : \"740\",\r\n \"label\" : \"Homeless Support Program\",\r\n \"value\" : \"7007\"\r\n },\r\n {\r\n \"locationCode\" : \"740\",\r\n \"label\" : \"Homeless Vet Assistance\",\r\n \"value\" : \"7009\"\r\n },\r\n {\r\n \"locationCode\" : \"756\",\r\n \"label\" : \"Behavioral Health Service Aid to Indigent\",\r\n \"value\" : \"1002\"\r\n },\r\n {\r\n \"locationCode\" : \"756\",\r\n \"label\" : \"General Purpose\",\r\n \"value\" : \"1004\"\r\n },\r\n {\r\n \"locationCode\" : \"756\",\r\n \"label\" : \"Volunteer Refreshment\",\r\n \"value\" : \"1010\"\r\n },\r\n {\r\n \"locationCode\" : \"756\",\r\n \"label\" : \"Voluntary Committee\",\r\n \"value\" : \"1019\"\r\n },\r\n {\r\n \"locationCode\" : \"756\",\r\n \"label\" : \"Visual Impairment Services Team\",\r\n \"value\" : \"1022\"\r\n },\r\n {\r\n \"locationCode\" : \"756\",\r\n \"label\" : \"Vet Center Recreation\",\r\n \"value\" : \"1024\"\r\n },\r\n {\r\n \"locationCode\" : \"756\",\r\n \"label\" : \"National Salute to Veterans\",\r\n \"value\" : \"1025\"\r\n },\r\n {\r\n \"locationCode\" : \"756\",\r\n \"label\" : \"Empty Stocking Campaign\",\r\n \"value\" : \"1026\"\r\n },\r\n {\r\n \"locationCode\" : \"756\",\r\n \"label\" : \"Homeless Veterans\",\r\n \"value\" : \"1030\"\r\n },\r\n {\r\n \"locationCode\" : \"756\",\r\n \"label\" : \"General Donation\",\r\n \"value\" : \"1031\"\r\n },\r\n {\r\n \"locationCode\" : \"756\",\r\n \"label\" : \"Welcome Home Celebration\",\r\n \"value\" : \"1036\"\r\n },\r\n {\r\n \"locationCode\" : \"756\",\r\n \"label\" : \"Caregiver Vet Occupational Health and Safety Act\",\r\n \"value\" : \"1039\"\r\n },\r\n {\r\n \"locationCode\" : \"756\",\r\n \"label\" : \"Equine Assisted Therapy\",\r\n \"value\" : \"1043\"\r\n },\r\n {\r\n \"locationCode\" : \"756\",\r\n \"label\" : \"Volunteer Caregivers Guide\",\r\n \"value\" : \"5101\"\r\n }\r\n];\r\n\r\nvar list = [];\r\nfor (var i = 0; i < temp.length; i++) {\r\n if (temp[i].locationCode === data.Facility.locationCode) {\r\n list.push({\r\n \"label\": temp[i].label,\r\n \"value\": temp[i].value.toString()\r\n });\r\n }\r\n}\r\n\r\nvalues = _.sortBy(list, \"label\");"},"dataType":"string","valueProperty":"value","refreshOn":"FacilityList","clearOnRefresh":true,"calculateServer":true,"validate":{"required":true,"onlyAvailableItems":true},"key":"programForDonation","type":"select","input":true,"hideOnChildrenHidden":false,"searchThreshold":0.3},{"label":"Donation Amount","description":"(the minimum donation is $5.00)","mask":false,"spellcheck":true,"tableView":false,"currency":"USD","inputFormat":"plain","validate":{"required":true,"custom":"if (_.isNil(input)) {\r\n valid = true;\r\n} else {\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}"},"key":"RemittanceNetAmount","type":"currency","input":true,"delimiter":true,"hideOnChildrenHidden":false,"lockKey":true,"source":"5eac84259b53ff041c170ee7","isNew":true},{"label":"In Memory of","tableView":true,"validateOn":"blur","validate":{"custom":"valid = pgFormioGlobal().validateText(input);","maxLength":255},"key":"inMemoryOf","type":"textfield","input":true,"lockKey":true,"source":"5eac84259b53ff041c170ee7","isNew":true,"hideOnChildrenHidden":false}],"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":"columns1","type":"columns","input":false,"tableView":false,"hideOnChildrenHidden":false},{"label":"Donor Intent/Additional Information","autoExpand":false,"tableView":true,"validate":{"custom":"valid = pgFormioGlobal().validateTextArea(input);","maxLength":1000},"key":"AdditionalInformation","type":"textarea","input":true,"lockKey":true,"source":"5eac84259b53ff041c170ee7","isNew":true},{"label":"HTML","attrs":[{"attr":"","value":""}],"content":"Thank you for your contribution. In accordance with Title 38 U.S.C. 8301, the Secretary of Veterans Affairs may accept gifts, for use in carrying out all laws administered by VA, which enhance the Secretary's ability to provide services and benefits to the veteran. No goods or services are provided by the Department of Veterans Affairs in return for your contribution. A donation to support any of the Department's programs is tax deductible, whether the donor directs that the donated funds be used for a specific purpose, or allows the Department to decide how the donated funds will be used.
","refreshOnChange":false,"key":"html3","type":"htmlelement","input":false,"tableView":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":"columns2","type":"columns","input":false,"tableView":false,"lockKey":true,"source":"5eac84253f388e59f3ba3b2c","isNew":true,"hideOnChildrenHidden":false},{"label":"Columns","columns":[{"components":[{"label":"CCF 1","calculateValue":"value = data.Facility.locationCode;","calculateServer":true,"key":"custom_field_1","type":"hidden","input":true,"tableView":true,"lockKey":true,"hideOnChildrenHidden":false,"mask":false,"inputFormat":"plain","spellcheck":true}],"width":2,"offset":0,"push":0,"pull":0,"size":"md","type":"column","hideOnChildrenHidden":false,"input":true,"key":"","tableView":true,"label":"","placeholder":"","prefix":"","customClass":"","suffix":"","multiple":false,"protected":false,"unique":false,"persistent":true,"hidden":false,"clearOnHide":true,"dataGridLabel":false,"labelPosition":"top","labelWidth":30,"labelMargin":3,"description":"","errorLabel":"","tooltip":"","hideLabel":false,"tabindex":"","disabled":false,"autofocus":false,"dbIndex":false,"customDefaultValue":"","calculateValue":"","allowCalculateOverride":false,"refreshOn":"","clearOnRefresh":false,"validateOn":"change","validate":{"required":false,"custom":"","customPrivate":false},"conditional":{"eq":""},"id":"eciwb9nj","currentWidth":2},{"components":[{"label":"CCF 2","tableView":true,"calculateValue":"value = data.programForDonation;","calculateServer":true,"key":"custom_field_2","type":"hidden","input":true,"lockKey":true,"hideOnChildrenHidden":false,"mask":false,"inputFormat":"plain","spellcheck":true}],"width":2,"offset":0,"push":0,"pull":0,"size":"md","type":"column","hideOnChildrenHidden":false,"input":true,"key":"","tableView":true,"label":"","placeholder":"","prefix":"","customClass":"","suffix":"","multiple":false,"protected":false,"unique":false,"persistent":true,"hidden":false,"clearOnHide":true,"dataGridLabel":false,"labelPosition":"top","labelWidth":30,"labelMargin":3,"description":"","errorLabel":"","tooltip":"","hideLabel":false,"tabindex":"","disabled":false,"autofocus":false,"dbIndex":false,"customDefaultValue":"","calculateValue":"","allowCalculateOverride":false,"refreshOn":"","clearOnRefresh":false,"validateOn":"change","validate":{"required":false,"custom":"","customPrivate":false},"conditional":{"eq":""},"id":"exw7tvmt","currentWidth":2},{"components":[{"label":"CCF 12","calculateValue":"value = \"Thank you for your thoughtfulness, generosity, and support of our efforts to enhance the quality of care provided to America's heroes.\";","calculateServer":true,"key":"custom_field_12","type":"hidden","input":true,"tableView":true,"lockKey":true,"hideOnChildrenHidden":false}],"width":2,"offset":0,"push":0,"pull":0,"type":"column","hideOnChildrenHidden":false,"input":true,"key":"","tableView":true,"label":"","placeholder":"","prefix":"","customClass":"","suffix":"","multiple":false,"protected":false,"unique":false,"persistent":true,"hidden":false,"clearOnHide":true,"dataGridLabel":false,"labelPosition":"top","labelWidth":30,"labelMargin":3,"description":"","errorLabel":"","tooltip":"","hideLabel":false,"tabindex":"","disabled":false,"autofocus":false,"dbIndex":false,"customDefaultValue":"","calculateValue":"","allowCalculateOverride":false,"refreshOn":"","clearOnRefresh":false,"validateOn":"change","validate":{"required":false,"custom":"","customPrivate":false},"conditional":{"eq":""},"id":"eyl1ak5p","size":"md","currentWidth":2},{"components":[{"label":"Program_Field","calculateValue":"value = data.programForDonation;","calculateServer":true,"key":"Program_Field","type":"hidden","input":true,"tableView":true,"lockKey":true,"hideOnChildrenHidden":false}],"width":2,"offset":0,"push":0,"pull":0,"type":"column","hideOnChildrenHidden":false,"input":true,"key":"","tableView":true,"label":"","placeholder":"","prefix":"","customClass":"","suffix":"","multiple":false,"protected":false,"unique":false,"persistent":true,"hidden":false,"clearOnHide":true,"dataGridLabel":false,"labelPosition":"top","labelWidth":30,"labelMargin":3,"description":"","errorLabel":"","tooltip":"","hideLabel":false,"tabindex":"","disabled":false,"autofocus":false,"dbIndex":false,"customDefaultValue":"","calculateValue":"","allowCalculateOverride":false,"refreshOn":"","clearOnRefresh":false,"validateOn":"change","validate":{"required":false,"custom":"","customPrivate":false},"conditional":{"eq":""},"id":"eervrqza","size":"md","currentWidth":2},{"components":[{"label":"partyGivenName","calculateValue":"value = data.Name_Field;","calculateServer":true,"key":"partyGivenName","type":"hidden","input":true,"tableView":false,"hideOnChildrenHidden":false}],"width":2,"offset":0,"push":0,"pull":0,"type":"column","hideOnChildrenHidden":false,"input":true,"key":"","tableView":true,"label":"","placeholder":"","prefix":"","customClass":"","suffix":"","multiple":false,"protected":false,"unique":false,"persistent":true,"hidden":false,"clearOnHide":true,"dataGridLabel":false,"labelPosition":"top","labelWidth":30,"labelMargin":3,"description":"","errorLabel":"","tooltip":"","hideLabel":false,"tabindex":"","disabled":false,"autofocus":false,"dbIndex":false,"customDefaultValue":"","calculateValue":"","allowCalculateOverride":false,"refreshOn":"","clearOnRefresh":false,"validateOn":"change","validate":{"required":false,"custom":"","customPrivate":false},"conditional":{"eq":""},"id":"eyj91ysh","size":"md","currentWidth":2},{"components":[],"width":2,"offset":0,"push":0,"pull":0,"type":"column","hideOnChildrenHidden":false,"input":true,"key":"","tableView":true,"label":"","placeholder":"","prefix":"","customClass":"","suffix":"","multiple":false,"protected":false,"unique":false,"persistent":true,"hidden":false,"clearOnHide":true,"dataGridLabel":false,"labelPosition":"top","labelWidth":30,"labelMargin":3,"description":"","errorLabel":"","tooltip":"","hideLabel":false,"tabindex":"","disabled":false,"autofocus":false,"dbIndex":false,"customDefaultValue":"","calculateValue":"","allowCalculateOverride":false,"refreshOn":"","clearOnRefresh":false,"validateOn":"change","validate":{"required":false,"custom":"","customPrivate":false},"conditional":{"eq":""},"id":"e15b2tie","size":"md","currentWidth":2}],"hideLabel":true,"key":"panelColumns2","type":"columns","labelWidth":30,"labelMargin":3,"input":false,"tableView":false,"clearOnRefresh":false,"path":"panelColumns2","lockKey":true,"source":"5eac8425c2464812cf69235e","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\"","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":"2021-07-01T12:00:13.004Z","modified":"2025-10-28T13:26:14.596Z","project":"5f9ae327f1b65987a86350f2","controller":"","revisions":"original","submissionRevisions":"","_vid":6,"_rid":"60ddae4d3e6163774a3194fc","_vnote":"(Source version:23, User:cflorea, Build:24569249)","_vuser":"admin","revisionId":"6900c476159290a6ef210111","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}}}}}}}"}