Display Fields when a certain value is selected/inputted
I have created a form that contains a drop that menu when a certain value is selected it displays/hides specific fields. I am running into a problem tho... Data only is being displayed for the last value of the drop down menu. For all the other values, it just hangs and doesn't display/hide the proper fields, Please visit the link below as i have provided a link to the form i am speaking of... Please help!
The form is located here: http://johnpia.com/zohoform
Here is the code for the "on user input" for the field labeled "Select Your Farm Department"
if (input.Select_Your_Farm_Department == "Phase I")
{
show Phase_I_Batch;
show plain;
show Tunnel_Number;
show Phase_I_Moisture;
show Yards_Per_Foot;
show Fill_Depth;
show Black_Areas;
show Water_Added;
show Fire_Fang;
show Dry_Layer_on_Floor;
show Compost_Cure_Details;
show Phase_1_Compost_Comments;
}
else
{
hide plain2;
hide mjsection;
hide Phase_II_Batch;
hide Phase_II_Tunnel_Number;
hide Phase_II_Moisture1;
hide Phase_II_Yards_Per_Foot;
hide Fill_Depth_PhaseII;
hide Black_Areas_PhaseII;
hide Water_Added_PhaseII;
hide Fire_Fang1;
hide Dry_Layer_on_Floor1;
hide Compost_Cure_Details1;
hide Type_of_Supplement;
hide Rate_of_Supplement;
hide Phase_II_Comments_on_Phase_I_Compost;
hide Phase_II_Comments_for_Phase_I;
hide plain5;
hide Fill_Date3;
hide House_Number3;
hide Age_of_Compost3;
hide Target_Dry_Weight3;
hide Actual_Dry_Weight3;
hide of_Days_in_Incubation3;
hide Colonization3;
hide Condition_when_filled3;
hide Molds_Present_During_Spawn_Run3;
hide Compost_Cure_Details2;
hide Other_Observations2;
hide plain3;
hide Fill_Date;
hide House_Number;
hide Age_of_compost;
hide Target_Dry_Weight;
hide Actual_Dry_Weight;
hide of_days_in_Incubation;
hide Colonization;
hide Condition_when_filled;
hide Molds_Present_During_Spawn_Run;
hide Compost_Cure_Details3;
hide Other_Observations3;
hide Fill_Date1;
hide House_Number1;
hide Age_of_Compost1;
hide Target_Dry_Weight1;
hide Actual_Dry_Weight1;
hide of_Days_in_Incubation1;
hide Colonization1;
hide Condition_when_filled1;
hide Molds_Present_During_Spawn_Run1;
hide Compost_Cure_Details4;
hide Other_Observations;
hide plain4;
hide Fill_Date2;
hide House_Number2;
hide Age_of_Compost2;
hide Target_Dry_Weight2;
hide Actual_Dry_Weight2;
hide of_Days_in_Incubation2;
hide Colonization2;
hide Condition_when_filled2;
hide Molds_Present_During_Spawn_Run2;
hide Compost_Cure_Details5;
hide Other_Observations1;
hide plain1;
}
if (input.Select_Your_Farm_Department == "Phase II")
{
show plain2;
show Phase_II_Batch;
show Phase_II_Tunnel_Number;
show Phase_II_Moisture1;
show Phase_II_Yards_Per_Foot;
show Fill_Depth_PhaseII;
show Black_Areas_PhaseII;
show Water_Added_PhaseII;
show Fire_Fang1;
show Dry_Layer_on_Floor1;
show Compost_Cure_Details1;
show Type_of_Supplement;
show Rate_of_Supplement;
show Phase_II_Comments_on_Phase_I_Compost;
show Phase_II_Comments_for_Phase_I;
}
else
{
hide plain5;
hide mjsection;
hide plain;
hide Phase_I_Batch;
hide Tunnel_Number;
hide Phase_I_Moisture;
hide Yards_Per_Foot;
hide Fill_Depth;
hide Black_Areas;
hide Water_Added;
hide Fire_Fang;
hide Dry_Layer_on_Floor;
hide Compost_Cure_Details;
hide Phase_1_Compost_Comments;
hide Fill_Date3;
hide House_Number3;
hide Age_of_Compost3;
hide Target_Dry_Weight3;
hide Actual_Dry_Weight3;
hide of_Days_in_Incubation3;
hide Colonization3;
hide Condition_when_filled3;
hide Molds_Present_During_Spawn_Run3;
hide Compost_Cure_Details2;
hide Other_Observations2;
hide plain3;
hide Fill_Date;
hide House_Number;
hide Age_of_compost;
hide Target_Dry_Weight;
hide Actual_Dry_Weight;
hide of_days_in_Incubation;
hide Colonization;
hide Condition_when_filled;
hide Molds_Present_During_Spawn_Run;
hide Compost_Cure_Details3;
hide Other_Observations3;
hide Fill_Date1;
hide House_Number1;
hide Age_of_Compost1;
hide Target_Dry_Weight1;
hide Actual_Dry_Weight1;
hide of_Days_in_Incubation1;
hide Colonization1;
hide Condition_when_filled1;
hide Molds_Present_During_Spawn_Run1;
hide Compost_Cure_Details4;
hide Other_Observations;
hide plain4;
hide Fill_Date2;
hide House_Number2;
hide Age_of_Compost2;
hide Target_Dry_Weight2;
hide Actual_Dry_Weight2;
hide of_Days_in_Incubation2;
hide Colonization2;
hide Condition_when_filled2;
hide Molds_Present_During_Spawn_Run2;
hide Compost_Cure_Details5;
hide Other_Observations1;
hide plain1;
}
if (input.Select_Your_Farm_Department == "Alpine")
{
show plain1;
show Fill_Date1;
show House_Number1;
show Age_of_Compost1;
show Target_Dry_Weight1;
show Actual_Dry_Weight1;
show of_Days_in_Incubation1;
show Colonization1;
show Condition_when_filled1;
show Molds_Present_During_Spawn_Run1;
show Compost_Cure_Details4;
show Other_Observations;
}
else
{
hide plain;
hide Phase_I_Batch;
hide Tunnel_Number;
hide mjsection;
hide Phase_I_Moisture;
hide Yards_Per_Foot;
hide Fill_Depth;
hide Black_Areas;
hide Water_Added;
hide Fire_Fang;
hide Dry_Layer_on_Floor;
hide Compost_Cure_Details;
hide Phase_1_Compost_Comments;
hide plain2;
hide Phase_II_Batch;
hide Phase_II_Tunnel_Number;
hide Phase_II_Moisture1;
hide Phase_II_Yards_Per_Foot;
hide Fill_Depth_PhaseII;
hide Black_Areas_PhaseII;
hide Water_Added_PhaseII;
hide Fire_Fang1;
hide Dry_Layer_on_Floor1;
hide Compost_Cure_Details1;
hide Type_of_Supplement;
hide Rate_of_Supplement;
hide Phase_II_Comments_on_Phase_I_Compost;
hide Phase_II_Comments_for_Phase_I;
hide plain5;
hide Fill_Date3;
hide House_Number3;
hide Age_of_Compost3;
hide Target_Dry_Weight3;
hide Actual_Dry_Weight3;
hide of_Days_in_Incubation3;
hide Colonization3;
hide Condition_when_filled3;
hide Molds_Present_During_Spawn_Run3;
hide Compost_Cure_Details2;
hide Other_Observations2;
hide plain3;
hide Fill_Date;
hide House_Number;
hide Age_of_compost;
hide Target_Dry_Weight;
hide Actual_Dry_Weight;
hide of_days_in_Incubation;
hide Colonization;
hide Condition_when_filled;
hide Molds_Present_During_Spawn_Run;
hide Compost_Cure_Details3;
hide Other_Observations3;
hide plain4;
hide Fill_Date2;
hide House_Number2;
hide Age_of_Compost2;
hide Target_Dry_Weight2;
hide Actual_Dry_Weight2;
hide of_Days_in_Incubation2;
hide Colonization2;
hide Condition_when_filled2;
hide Molds_Present_During_Spawn_Run2;
hide Compost_Cure_Details5;
hide Other_Observations1;
hide plain1;
}
if (input.Select_Your_Farm_Department == "Kennett")
{
show Fill_Date;
show plain3;
show House_Number;
show Age_of_compost;
show Target_Dry_Weight;
show of_days_in_Incubation;
show Colonization;
show Actual_Dry_Weight;
show Condition_when_filled;
show Molds_Present_During_Spawn_Run;
show Compost_Cure_Details3;
show Other_Observations3;
}
else
{
hide plain;
hide Phase_I_Batch;
hide mjsection;
hide Tunnel_Number;
hide Phase_I_Moisture;
hide Yards_Per_Foot;
hide Fill_Depth;
hide Black_Areas;
hide Water_Added;
hide Fire_Fang;
hide Dry_Layer_on_Floor;
hide Compost_Cure_Details;
hide Phase_1_Compost_Comments;
hide plain2;
hide Phase_II_Batch;
hide Phase_II_Tunnel_Number;
hide Phase_II_Moisture1;
hide Phase_II_Yards_Per_Foot;
hide Fill_Depth_PhaseII;
hide Black_Areas_PhaseII;
hide Water_Added_PhaseII;
hide Fire_Fang1;
hide Dry_Layer_on_Floor1;
hide Compost_Cure_Details1;
hide Type_of_Supplement;
hide Rate_of_Supplement;
hide Phase_II_Comments_on_Phase_I_Compost;
hide Phase_II_Comments_for_Phase_I;
hide plain5;
hide Fill_Date3;
hide House_Number3;
hide Age_of_Compost3;
hide Target_Dry_Weight3;
hide Actual_Dry_Weight3;
hide of_Days_in_Incubation3;
hide Colonization3;
hide Condition_when_filled3;
hide Molds_Present_During_Spawn_Run3;
hide Compost_Cure_Details2;
hide Other_Observations2;
hide Fill_Date1;
hide House_Number1;
hide Age_of_Compost1;
hide Target_Dry_Weight1;
hide Actual_Dry_Weight1;
hide of_Days_in_Incubation1;
hide Colonization1;
hide Condition_when_filled1;
hide Molds_Present_During_Spawn_Run1;
hide Compost_Cure_Details4;
hide Other_Observations;
hide plain4;
hide Fill_Date2;
hide House_Number2;
hide Age_of_Compost2;
hide Target_Dry_Weight2;
hide Actual_Dry_Weight2;
hide of_Days_in_Incubation2;
hide Colonization2;
hide Condition_when_filled2;
hide Molds_Present_During_Spawn_Run2;
hide Compost_Cure_Details5;
hide Other_Observations1;
hide plain1;
}
if (input.Select_Your_Farm_Department == "West Grove")
{
show plain4;
show Fill_Date2;
show House_Number2;
show Age_of_Compost2;
show Target_Dry_Weight2;
show Actual_Dry_Weight2;
show of_Days_in_Incubation2;
show Colonization2;
show Condition_when_filled2;
show Molds_Present_During_Spawn_Run2;
show Compost_Cure_Details5;
show Other_Observations1;
}
else
{
hide plain;
hide Phase_I_Batch;
hide Tunnel_Number;
hide mjsection;
hide Phase_I_Moisture;
hide Yards_Per_Foot;
hide Fill_Depth;
hide Black_Areas;
hide Water_Added;
hide Fire_Fang;
hide Dry_Layer_on_Floor;
hide Compost_Cure_Details;
hide Phase_1_Compost_Comments;
hide plain2;
hide Phase_II_Batch;
hide Phase_II_Tunnel_Number;
hide Phase_II_Moisture1;
hide Phase_II_Yards_Per_Foot;
hide Fill_Depth_PhaseII;
hide Black_Areas_PhaseII;
hide Water_Added_PhaseII;
hide Fire_Fang1;
hide Dry_Layer_on_Floor1;
hide Compost_Cure_Details1;
hide Type_of_Supplement;
hide Rate_of_Supplement;
hide Phase_II_Comments_on_Phase_I_Compost;
hide Phase_II_Comments_for_Phase_I;
hide plain5;
hide Fill_Date3;
hide House_Number3;
hide Age_of_Compost3;
hide Target_Dry_Weight3;
hide Actual_Dry_Weight3;
hide of_Days_in_Incubation3;
hide Colonization3;
hide Condition_when_filled3;
hide Molds_Present_During_Spawn_Run3;
hide Compost_Cure_Details2;
hide Other_Observations2;
hide plain3;
hide Fill_Date;
hide House_Number;
hide Age_of_compost;
hide Target_Dry_Weight;
hide Actual_Dry_Weight;
hide of_days_in_Incubation;
hide Colonization;
hide Condition_when_filled;
hide Molds_Present_During_Spawn_Run;
hide Compost_Cure_Details3;
hide Other_Observations3;
hide Fill_Date1;
hide House_Number1;
hide Age_of_Compost1;
hide Target_Dry_Weight1;
hide Actual_Dry_Weight1;
hide of_Days_in_Incubation1;
hide Colonization1;
hide Condition_when_filled1;
hide Molds_Present_During_Spawn_Run1;
hide Compost_Cure_Details4;
hide Other_Observations;
hide plain1;
}
if (input.Select_Your_Farm_Department == "M&J")
{
show Fill_Date3;
show House_Number3;
show mjsection;
show plain5;
show Age_of_Compost3;
show Target_Dry_Weight3;
show of_Days_in_Incubation3;
show Colonization3;
show Condition_when_filled3;
show Molds_Present_During_Spawn_Run3;
show Compost_Cure_Details2;
show Other_Observations2;
}
else
{
hide plain;
hide Phase_I_Batch;
hide Tunnel_Number;
hide Phase_I_Moisture;
hide Yards_Per_Foot;
hide Fill_Depth;
hide Black_Areas;
hide Water_Added;
hide Fire_Fang;
hide Dry_Layer_on_Floor;
hide Compost_Cure_Details;
hide Phase_1_Compost_Comments;
hide plain2;
hide Phase_II_Batch;
hide Phase_II_Tunnel_Number;
hide Phase_II_Moisture1;
hide Phase_II_Yards_Per_Foot;
hide Fill_Depth_PhaseII;
hide Black_Areas_PhaseII;
hide Water_Added_PhaseII;
hide Fire_Fang1;
hide Dry_Layer_on_Floor1;
hide Compost_Cure_Details1;
hide Type_of_Supplement;
hide Rate_of_Supplement;
hide Phase_II_Comments_on_Phase_I_Compost;
hide Phase_II_Comments_for_Phase_I;
hide plain3;
hide Fill_Date;
hide House_Number;
hide Age_of_compost;
hide Target_Dry_Weight;
hide Actual_Dry_Weight;
hide of_days_in_Incubation;
hide Colonization;
hide Condition_when_filled;
hide Molds_Present_During_Spawn_Run;
hide Compost_Cure_Details3;
hide Other_Observations3;
hide Fill_Date1;
hide House_Number1;
hide Age_of_Compost1;
hide Target_Dry_Weight1;
hide Actual_Dry_Weight1;
hide of_Days_in_Incubation1;
hide Colonization1;
hide Condition_when_filled1;
hide Molds_Present_During_Spawn_Run1;
hide Compost_Cure_Details4;
hide Other_Observations;
hide plain4;
hide Fill_Date2;
hide House_Number2;
hide Age_of_Compost2;
hide Target_Dry_Weight2;
hide Actual_Dry_Weight2;
hide of_Days_in_Incubation2;
hide Colonization2;
hide Condition_when_filled2;
hide Molds_Present_During_Spawn_Run2;
hide Compost_Cure_Details5;
hide Other_Observations1;
hide plain1;
}