var SubmissionResources = { }; var OnChangeHandler = { }; var Actions = { A0: function(recordGuid) { var tmp = !((((Actions.GetValueOrDefaultOf('byh_associationMunicipality', 'Enumeration') == 'aarhus') || (Actions.GetValueOrDefaultOf('byh_associationMunicipality', 'Enumeration') == 'odense')) || (Actions.GetValueOrDefaultOf('byh_associationMunicipality', 'Enumeration') == 'aalborg'))); Actions.SetVisible('byh_associationZipCode', tmp); }, A1: function(recordGuid) { var tmp = !((((Actions.GetValueOrDefaultOf('byh_associationMunicipality', 'Enumeration') == 'aarhus') || (Actions.GetValueOrDefaultOf('byh_associationMunicipality', 'Enumeration') == 'odense')) || (Actions.GetValueOrDefaultOf('byh_associationMunicipality', 'Enumeration') == 'aalborg'))); Actions.SetVisible('byh_associationTown', tmp); }, A2: function(recordGuid) { var tmp = ((Actions.GetValueOrDefaultOf('byh_association', 'Enumeration') == 'cooperative') || (Actions.GetValueOrDefaultOf('byh_association', 'Enumeration') == 'owner')); Actions.SetVisible('byh_associationSubscription', tmp); }, A3: function(recordGuid) { var tmp = (Actions.GetValueOrDefaultOf('byh_associationMunicipality', 'Enumeration') == 'aarhus'); Actions.SetVisible('byh_zipcodeAarhus', tmp); }, A4: function(recordGuid) { var tmp = (Actions.GetValueOrDefaultOf('byh_associationMunicipality', 'Enumeration') == 'odense'); Actions.SetVisible('byh_zipcodeOdense', tmp); }, A5: function(recordGuid) { var tmp = (Actions.GetValueOrDefaultOf('byh_associationMunicipality', 'Enumeration') == 'aalborg'); Actions.SetVisible('byh_zipcodeAalborg', tmp); }, A6: function(recordGuid) { var tmp = (Actions.GetValueOrDefaultOf('common_contactperson', 'Enumeration') == 'yes'); Actions.SetVisible('common_contactName', tmp); }, A7: function(recordGuid) { var tmp = (Actions.GetValueOrDefaultOf('common_contactperson', 'Enumeration') == 'yes'); Actions.SetVisible('common_contactEmail', tmp); }, A8: function(recordGuid) { var tmp = (Actions.GetValueOrDefaultOf('common_contactperson', 'Enumeration') == 'yes'); Actions.SetVisible('common_contactPhone', tmp); }, A9: function(recordGuid) { var tmp = (Actions.GetValueOrDefaultOf('common_contactperson', 'Enumeration') == 'yes'); Actions.SetVisible('common_contactRelation', tmp); }, A10: function(recordGuid) { var tmp = (Number((Number(Actions.GetValueOrDefaultOf('byh_projectPlanning', 'Decimal')) + Number(Actions.GetValueOrDefaultOf('byh_projectMaterial', 'Decimal')))) + Number(Actions.GetValueOrDefaultOf('byh_projectConstruction', 'Decimal')));if ((typeof tmp === 'number' && isNaN(tmp)) || tmp == Infinity) Actions.SetValueOf('byh_projectTotal', '', undefined, false);else Actions.SetValueOf('byh_projectTotal', ValueExpr.FormatDecimal(tmp), undefined, false); }, A11: function(recordGuid) { var tmp = true; Actions.SetReadOnly('byh_projectTotal', tmp); }, A12: function(recordGuid) { var tmp = (Actions.GetValueOrDefaultOf('byh_association', 'Enumeration') == 'privat'); Actions.SetVisible('8e7a7129-1179-4bc8-ab8b-8c210a82cc87', tmp); }, A13: function(recordGuid) { var tmp = ((Actions.GetValueOrDefaultOf('byh_association', 'Enumeration') == 'cooperative') || (Actions.GetValueOrDefaultOf('byh_association', 'Enumeration') == 'owner')); Actions.SetVisible('c934b0bf-84d2-43d7-aab3-1247cf91f88d', tmp); }, A14: function(recordGuid) { var tmp = (Actions.GetValueOrDefaultOf('common_contactperson', 'Enumeration') == 'yes'); Actions.SetVisible('2dc2bdb3-3cdd-4eaf-a44c-8b1daa7e44dd', tmp); }, A15: function(recordGuid) { var tmp = (Actions.GetValueOrDefaultOf('common_contactperson', 'Enumeration') == 'yes'); Actions.SetVisible('624831ef-0867-442a-8c76-fb4ec1a3995e', tmp); }, A16: function(recordGuid) { var tmp = (Actions.GetValueOrDefaultOf('common_contactperson', 'Enumeration') == 'yes'); Actions.SetVisible('a7be36ad-d6ef-4012-808c-ebef84e782f8', tmp); }, A17: function(recordGuid) { var tmp = (Actions.GetValueOrDefaultOf('common_contactperson', 'Enumeration') == 'yes'); Actions.SetVisible('8cf38e71-a513-4c85-8d05-8f7c01c15874', tmp); }, A18: function(recordGuid) { var tmp = (Actions.GetValueOrDefaultOf('byh_associationMunicipality', 'Enumeration') == 'aarhus'); Actions.SetVisible('491c9d82-3ba2-49ec-b9f5-be2f0f2a17b8', tmp); }, A19: function(recordGuid) { var tmp = (Actions.GetValueOrDefaultOf('byh_associationMunicipality', 'Enumeration') == 'odense'); Actions.SetVisible('ea49d3a9-2997-43a8-b61c-8e14385d94e5', tmp); }, A20: function(recordGuid) { var tmp = (Actions.GetValueOrDefaultOf('byh_associationMunicipality', 'Enumeration') == 'aalborg'); Actions.SetVisible('e5be2f1c-1a1d-4e79-95ae-c4488a1ad743', tmp); }, A21: function(recordGuid) { var tmp = !((((Actions.GetValueOrDefaultOf('byh_associationMunicipality', 'Enumeration') == 'aarhus') || (Actions.GetValueOrDefaultOf('byh_associationMunicipality', 'Enumeration') == 'odense')) || (Actions.GetValueOrDefaultOf('byh_associationMunicipality', 'Enumeration') == 'aalborg'))); Actions.SetVisible('40cb7d9a-c01a-406f-bab7-7b781c427cb5', tmp); }, A22: function(recordGuid) { var tmp = !((((Actions.GetValueOrDefaultOf('byh_associationMunicipality', 'Enumeration') == 'aarhus') || (Actions.GetValueOrDefaultOf('byh_associationMunicipality', 'Enumeration') == 'odense')) || (Actions.GetValueOrDefaultOf('byh_associationMunicipality', 'Enumeration') == 'aalborg'))); Actions.SetVisible('843b87d4-0473-440c-b85a-27f8f29ae69d', tmp); }, A23: function(recordGuid) { var tmp = (Actions.GetValueOrDefaultOf('byh_freeArea', 'Enumeration') == 'yes'); Actions.SetVisible('0563d92f-76e3-474c-95ab-9c46e78a205b', tmp); }, A24: function(recordGuid) { var tmp = (Actions.GetValueOrDefaultOf('byh_associationMunicipality', 'Enumeration') == 'aarhus'); Actions.SetVisible('5a83300a-c1f8-4d40-8a69-17298793e074', tmp); }, A25: function(recordGuid) { var tmp = (Actions.GetValueOrDefaultOf('byh_associationMunicipality', 'Enumeration') == 'odense'); Actions.SetVisible('7ea9d94d-632f-4851-935f-d8957029197e', tmp); }, A26: function(recordGuid) { var tmp = (Actions.GetValueOrDefaultOf('byh_associationMunicipality', 'Enumeration') == 'aalborg'); Actions.SetVisible('8ccfa695-43dc-4b67-b33f-a1e9530b0244', tmp); }}; var ActionNames = ['A26','A25','A24','A23','A22','A21','A20','A19','A18','A17','A16','A15','A14','A13','A12','A11','A10','A9','A8','A7','A6','A5','A4','A3','A2','A1','A0']; var GlobalActionNames = ['A26','A25','A24','A23','A22','A21','A20','A19','A18','A17','A16','A15','A14','A13','A12','A11','A10','A9','A8','A7','A6','A5','A4','A3','A2','A1','A0']; var ListActionNames = { }; var Dependencies = { "byh_associationMunicipality": { "Dependencies": [Actions.A26,Actions.A25,Actions.A24,Actions.A22,Actions.A21,Actions.A20,Actions.A19,Actions.A18,Actions.A5,Actions.A4,Actions.A3,Actions.A1,Actions.A0] }, "byh_association": { "Dependencies": [Actions.A13,Actions.A12,Actions.A2] }, "common_contactperson": { "Dependencies": [Actions.A17,Actions.A16,Actions.A15,Actions.A14,Actions.A9,Actions.A8,Actions.A7,Actions.A6] }, "byh_projectPlanning": { "Dependencies": [Actions.A10] }, "byh_projectMaterial": { "Dependencies": [Actions.A10] }, "byh_projectConstruction": { "Dependencies": [Actions.A10] }, "byh_freeArea": { "Dependencies": [Actions.A23] } }; var submitScriptData = { SaveUrl: '/SelfService/submission/save/byh_application', SaveUploadUrl: '/SelfService/submission/saveupload/byh_application', RemoveUploadUrl: '/SelfService/submission/removeupload/byh_application', NewRecordInputUrl: '/SelfService/submission/NewRecordInput/byh_application', WebActionUrl: '/SelfService/webaction/execute/byh_application', AutoCompleteUrl: '/SelfService/autocomplete/execute/byh_application', UICultureString: 'da-DK', LocaleString: 'da-DK', WeekNumberCulture: 'da-DK', LocaleDecimalSeparator: ',', LocaleThousandSeparator: '.', ClientValidationEnabled: true, IntFormat: { NumberOfDecimals: 0, FixedDecimals: true, ThousandGroupingEnabled: false }, DecimalFormat: { NumberOfDecimals: 2, FixedDecimals: true, ThousandGroupingEnabled: true }, DoubleFormat: { NumberOfDecimals: 4, FixedDecimals: false, ThousandGroupingEnabled: false }, MaxUploadSize: 5000, MapBoundaries: { North: '0', South: '0', East: '0', West: '0' }, ContactProperties: [ ] , SaveDraftDataInterval: 10000, ReplyKey: '', DatePicker: { MomentFormat: 'DD-MM-YYYY', JqueryFormat: 'dd-mm-yy', FirstDay: 1, IsRightToLeft: false, ShowMonthAfterYear: false, DatePickerImage: '/SelfService/Themes/v2/Images/svg-icons/insert-invitation.svg', } }