var SubmissionResources = { }; var OnChangeHandler = { }; var Actions = { A0: function(recordGuid) { var tmp = Actions.GetValueOrDefaultOf('nap_onBehalfOfOther', 'Bool'); Actions.SetVisible('nap_contactperson', tmp); }, A1: function(recordGuid) { var tmp = Actions.GetValueOrDefaultOf('nap_onBehalfOfOther', 'Bool'); Actions.SetVisible('nap_contactpersonEmail', tmp); }, A2: function(recordGuid) { var tmp = Actions.GetValueOrDefaultOf('nap_onBehalfOfOther', 'Bool'); Actions.SetVisible('nap_contactpersonPhone', tmp); }, A3: function(recordGuid) { var tmp = true; Actions.SetReadOnly('nap_areaName', tmp); }, A4: function(recordGuid) { var tmp = !(Actions.GetValueOrDefaultOf('nap_generel', 'Bool')); Actions.SetVisible('nap_areaName', tmp); }, A5: function(recordGuid) { var tmp = true; Actions.SetReadOnly('nap_areaNumber', tmp); }, A6: function(recordGuid) { var tmp = !(Actions.GetValueOrDefaultOf('nap_generel', 'Bool')); Actions.SetVisible('nap_areaNumber', tmp); }, A7: function(recordGuid) { var tmp = Actions.GetValueOrDefaultOf('nap_onBehalfOfOther', 'Bool'); Actions.SetVisible('47f19b82-fca6-420b-8135-f8ea89c241f4', tmp); }, A8: function(recordGuid) { var tmp = !(Actions.GetValueOrDefaultOf('nap_generel', 'Bool')); Actions.SetVisible('6a2ec2e2-d359-4760-9696-25280965b7b2', tmp); }, A9: function(recordGuid) { var tmp = !(Actions.GetValueOrDefaultOf('nap_generel', 'Bool')); Actions.SetVisible('8aeb532d-ac77-4b62-b612-91fe778ef0cf', tmp); }, A10: function(recordGuid) { var tmp = !(Actions.GetValueOrDefaultOf('nap_generel', 'Bool')); Actions.SetVisible('08f92f09-a0f4-48b2-b7e4-c5142103d65e', tmp); }}; var ActionNames = ['A10','A9','A8','A7','A6','A5','A4','A3','A2','A1','A0']; var GlobalActionNames = ['A10','A9','A8','A7','A6','A5','A4','A3','A2','A1','A0']; var ListActionNames = { }; var Dependencies = { 'nap_onBehalfOfOther': { 'Dependencies': [Actions.A7,Actions.A2,Actions.A1,Actions.A0] }, 'nap_generel': { 'Dependencies': [Actions.A10,Actions.A9,Actions.A8,Actions.A6,Actions.A4] } }; var submitScriptData = { SaveUrl: '/SelfService/submission/save/nap', SaveUploadUrl: '/SelfService/submission/saveupload/nap', RemoveUploadUrl: '/SelfService/submission/removeupload/nap', NewRecordInputUrl: '/SelfService/submission/NewRecordInput/nap', WebActionUrl: '/SelfService/webaction/execute/nap', AutoCompleteUrl: '/SelfService/autocomplete/execute/nap', 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: 250000, 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', } }