var SubmissionResources = { }; var OnChangeHandler = { }; var Actions = { A0: function(recordGuid) { var tmp = Actions.GetValueOrDefaultOf('carcd_intake_lease_var', 'Bool'); Actions.SetVisible('carcd_intake_leaseExpiryDate', tmp); }, A1: function(recordGuid) { var tmp = Actions.GetValueOrDefaultOf('carcd_intake_lease_var', 'Bool'); Actions.SetVisible('carcd_intake_propertyOwner', tmp); }, A2: function(recordGuid) { var tmp = (Actions.GetValueOrDefaultOf('carcd_intake_doesLandHaveAddress', 'Enumeration') == 'no'); Actions.SetVisible('carcd_intake_parcelNoGPSCoordinates', tmp); }, A3: function(recordGuid) { var tmp = (Actions.GetValueOrDefaultOf('carcd_intake_doesLandHaveAddress', 'Enumeration') == 'yes'); Actions.SetVisible('carcd_intake_landAddressStreet', tmp); }, A4: function(recordGuid) { var tmp = (Actions.GetValueOrDefaultOf('carcd_intake_doesLandHaveAddress', 'Enumeration') == 'yes'); Actions.SetVisible('carcd_intake_landAddressCity', tmp); }, A5: function(recordGuid) { var tmp = (Actions.GetValueOrDefaultOf('carcd_intake_doesLandHaveAddress', 'Enumeration') == 'yes'); Actions.SetVisible('carcd_intake_landAddressPostalCode', tmp); }, A6: function(recordGuid) { var tmp = (Actions.GetValueOrDefaultOf('carcd_intake_landUse_other', 'Bool') == true); Actions.SetRequired('carcd_intake_landUse_otherSpecify', tmp); }, A7: function(recordGuid) { var tmp = Actions.GetValueOrDefaultOf('carcd_intake_landUse_otherSpecify_var', 'Bool'); Actions.SetVisible('carcd_intake_landUse_otherSpecify', tmp); }, A8: function(recordGuid) { var tmp = (Actions.GetValueOrDefaultOf('carcd_intake_landUse_grazing', 'Bool') == true); Actions.SetVisible('carcd_intake_landUse_grazingAcreage', tmp); }, A9: function(recordGuid) { var tmp = (Actions.GetValueOrDefaultOf('carcd_intake_landUse_vineyards', 'Bool') == true); Actions.SetVisible('carcd_intake_landUse_vineyardsAcreage', tmp); }, A10: function(recordGuid) { var tmp = (Actions.GetValueOrDefaultOf('carcd_intake_landUse_orchards', 'Bool') == true); Actions.SetVisible('carcd_intake_landUse_orchardsAcreage', tmp); }, A11: function(recordGuid) { var tmp = (Actions.GetValueOrDefaultOf('carcd_intake_landUse_rowCrops', 'Bool') == true); Actions.SetVisible('carcd_intake_landUse_rowCropsAcreage', tmp); }, A12: function(recordGuid) { var tmp = (Actions.GetValueOrDefaultOf('carcd_intake_landUse_naturalLands', 'Bool') == true); Actions.SetVisible('carcd_intake_landUse_naturalLandsAcreage', tmp); }, A13: function(recordGuid) { var tmp = ((Actions.GetValueOrDefaultOf('carcd_intake_landUse_other', 'Bool') == true) && Actions.GetValueOrDefaultOf('carcd_intake_landUse_otherSpecify_var', 'Bool')); Actions.SetVisible('carcd_intake_landUse_otherAcreage', tmp); }, A14: function(recordGuid) { var tmp = Actions.GetValueOrDefaultOf('carcd_intake_goal_otherElaborate_var', 'Bool'); Actions.SetVisible('carcd_intake_goal_otherElaborate', tmp); }, A15: function(recordGuid) { var tmp = (Actions.GetValueOrDefaultOf('carcd_intake_leaseOwn', 'Enumeration') == 'lease'); Actions.SetValueOf('carcd_intake_lease_var', tmp, undefined, true); }, A16: function(recordGuid) { var tmp = (Actions.GetValueOrDefaultOf('carcd_intake_landUse_grazing', 'Bool') == true); Actions.SetValueOf('carcd_intake_landUse_grazing_var', tmp, undefined, true); }, A17: function(recordGuid) { var tmp = (Actions.GetValueOrDefaultOf('carcd_intake_landUse_vineyards', 'Bool') == true); Actions.SetValueOf('carcd_intake_landUse_vineyards_var', tmp, undefined, true); }, A18: function(recordGuid) { var tmp = (Actions.GetValueOrDefaultOf('carcd_intake_landUse_orchards', 'Bool') == true); Actions.SetValueOf('carcd_intake_landUse_orchards_var', tmp, undefined, true); }, A19: function(recordGuid) { var tmp = (Actions.GetValueOrDefaultOf('carcd_intake_landUse_rowCrops', 'Bool') == true); Actions.SetValueOf('carcd_intake_landUse_rowCrops_var', tmp, undefined, true); }, A20: function(recordGuid) { var tmp = (Actions.GetValueOrDefaultOf('carcd_intake_landUse_naturalLands', 'Bool') == true); Actions.SetValueOf('carcd_intake_landUse_naturalLands_var', tmp, undefined, true); }, A21: function(recordGuid) { var tmp = (Actions.GetValueOrDefaultOf('carcd_intake_landUse_other', 'Bool') == true); Actions.SetValueOf('carcd_intake_landUse_otherSpecify_var', tmp, undefined, true); }, A22: function(recordGuid) { var tmp = Actions.GetValueOf('carcd_intake_goals_other', null, undefined, 'carcd_intake_goals'); Actions.SetValueOf('carcd_intake_goal_otherElaborate_var', tmp, undefined, true); }, A23: function(recordGuid) { var tmp = Actions.GetValueOrDefaultOf('carcd_intake_lease_var', 'Bool'); Actions.SetVisible('08e5dadb-5d7e-45c9-b344-55f38f5180c8', tmp); }, A24: function(recordGuid) { var tmp = Actions.GetValueOrDefaultOf('carcd_intake_landUse_otherSpecify_var', 'Bool'); Actions.SetVisible('c5123691-dea0-4b06-a5d7-364dbdd5e658', tmp); }, A25: function(recordGuid) { var tmp = Actions.GetValueOrDefaultOf('carcd_intake_goal_otherElaborate_var', 'Bool'); Actions.SetVisible('35e6cffc-281b-402b-bd7c-f1fec9f6e59d', tmp); }}; var ActionNames = ['A22','A25','A21','A24','A20','A19','A18','A17','A16','A15','A23','A14','A13','A12','A11','A10','A9','A8','A7','A6','A5','A4','A3','A2','A1','A0']; var GlobalActionNames = ['A22','A25','A21','A24','A20','A19','A18','A17','A16','A15','A23','A14','A13','A12','A11','A10','A9','A8','A7','A6','A5','A4','A3','A2','A1','A0']; var ListActionNames = { }; var Dependencies = { "carcd_intake_leaseOwn": { "Dependencies": [Actions.A15,Actions.A23,Actions.A1,Actions.A0] }, "carcd_intake_lease_var": { "Dependencies": [Actions.A23,Actions.A1,Actions.A0] }, "carcd_intake_doesLandHaveAddress": { "Dependencies": [Actions.A5,Actions.A4,Actions.A3,Actions.A2] }, "carcd_intake_landUse_other": { "Dependencies": [Actions.A21,Actions.A24,Actions.A13,Actions.A7,Actions.A6] }, "carcd_intake_landUse_otherSpecify_var": { "Dependencies": [Actions.A24,Actions.A13,Actions.A7] }, "carcd_intake_landUse_grazing": { "Dependencies": [Actions.A16,Actions.A8] }, "carcd_intake_landUse_vineyards": { "Dependencies": [Actions.A17,Actions.A9] }, "carcd_intake_landUse_orchards": { "Dependencies": [Actions.A18,Actions.A10] }, "carcd_intake_landUse_rowCrops": { "Dependencies": [Actions.A19,Actions.A11] }, "carcd_intake_landUse_naturalLands": { "Dependencies": [Actions.A20,Actions.A12] }, "carcd_intake_goals": { "Dependencies": [Actions.A22,Actions.A25,Actions.A14] }, "carcd_intake_goal_otherElaborate_var": { "Dependencies": [Actions.A25,Actions.A14] } }; var submitScriptData = { SaveUrl: '/SelfService/submission/save/Intake_form', SaveUploadUrl: '/SelfService/submission/saveupload/Intake_form', RemoveUploadUrl: '/SelfService/submission/removeupload/Intake_form', NewRecordInputUrl: '/SelfService/submission/NewRecordInput/Intake_form', WebActionUrl: '/SelfService/webaction/execute/Intake_form', AutoCompleteUrl: '/SelfService/autocomplete/execute/Intake_form', UICultureString: 'en-US', LocaleString: 'en-US', LocaleDateFormat: 'M/D/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: 5000, MapBoundaries: { North: '0', South: '0', East: '0', West: '0' }, ContactProperties: [ ] , SaveDraftDataInterval: 10000, ReplyKey: '' }