var SubmissionResources = { }; var OnChangeHandler = { }; var Actions = { A0: function(recordGuid) { var tmp = (Actions.GetValueOrDefaultOf('ship_gwcmc_licencedExporter', 'Enumeration') == 'licenced'); Actions.SetVisible('gwcmc_cites_exporterName', tmp); }, A1: function(recordGuid) { var tmp = (Actions.GetValueOrDefaultOf('ship_gwcmc_licencedExporter', 'Enumeration') == 'licenced'); Actions.SetVisible('gwcmc_cites_exporterLicenceNumber', tmp); }, A2: function(recordGuid) { var tmp = (Actions.GetValueOrDefaultOf('ship_gwcmc_licencedExporter', 'Enumeration') == 'licenced'); Actions.SetVisible('gwcmc_cites_exporterLicenceNumberAutocompleter', tmp); }, A3: function(recordGuid) { var tmp = (Actions.GetValueOrDefaultOf('ship_gwcmc_licencedExporter', 'Enumeration') == 'unlicenced'); Actions.SetVisible('ship_gwcmc_unlicencedExporterName', tmp); }, A4: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'ship_gwcmc_specifyOther', parentName: 'ship_gwcmc_shipmentList', guid: recordGuid}), function(index, recordArgs) { var tmp = (Actions.GetValueOrDefaultOf('ship_gwcmc_wildlifeCategory', 'Enumeration', recordArgs) == 'other'); Actions.SetVisible('ship_gwcmc_specifyOther', tmp, recordArgs); }); }}; var ActionNames = ['A4','A3','A2','A1','A0']; var GlobalActionNames = ['A3','A2','A1','A0']; var ListActionNames = { 'ship_gwcmc_shipmentList': ['A4'], }; var Dependencies = { "ship_gwcmc_licencedExporter": { "Dependencies": [Actions.A3,Actions.A2,Actions.A1,Actions.A0] }, "ship_gwcmc_shipmentList": { "Dependencies": [], "ship_gwcmc_wildlifeCategory": { "Internal": [Actions.A4] } } }; var submitScriptData = { SaveUrl: '/SelfService/submission/save/Shipment_Request', SaveUploadUrl: '/SelfService/submission/saveupload/Shipment_Request', RemoveUploadUrl: '/SelfService/submission/removeupload/Shipment_Request', NewRecordInputUrl: '/SelfService/submission/NewRecordInput/Shipment_Request', WebActionUrl: '/SelfService/webaction/execute/Shipment_Request', AutoCompleteUrl: '/SelfService/autocomplete/execute/Shipment_Request', UICultureString: 'en-GB', LocaleString: 'en-GB', LocaleDateFormat: 'DD/MM/YYYY', 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: 10000, MapBoundaries: { North: '0', South: '0', East: '0', West: '0' }, ContactProperties: [ ] , SaveDraftDataInterval: 10000, ReplyKey: '' }