Need help with auto populating and filling subform
PROBLEM: We have a form named "Add_Program" and within that form we have a subform named "Services". Within the main form "Add_Program" we have a dropdown field named "Program". If the user selects "Cleanup" from that dropdown, the subform should autopopulate the rows in the code below. However, we're receiving an error code:
Error details:
Error in executing On User Input script of Program.
Invalid update task found corresponding properties Line:(5)
---------------------------------------------------------------------------------
Main Form Name: Add_ProgramSubform Name: Services
if(Program == "Cleanup")
{
row1 = Add_Program.Services();
row1.Included="True";
row1.Service="Winter Cleanup";
row1.Price="200";
input.Services.insert(row1);
row2 = Add_Program.Services();
row2.Included="True";
row2.Service="Spring Cleanup";
row2.Price="375";
input.Services.insert(row2);
row3 = Add_Program.Services();
row3.Included="True";
row3.Service="Spring Mulch Application";
row3.Price="375";
input.Services.insert(row3);
row4 = Add_Program.Services();
row4.Included="True";
row4.Service="Landscaping Maintenance Visit";
row4.Price="200";
input.Services.insert(row4);
row5 = Add_Program.Services();
row5.Included="True";
row5.Service="Fall Cleanup";
row5.Price="375";
input.Services.insert(row5);
row6 = Add_Program.Services();
row6.Included="True";
row6.Service="Fall Mulch Application";
row6.Price="375";
input.Services.insert(row6);
cleanup = Collection();
cleanup.insert(row1,row2,row3,row4,row5,row6);
input.Services.insert(cleanup);
}
Thanks for your help!!! Chris
Zoho Desk Resources
-
Desk Community Learning Series
-
-
-
-
-
-
-
-
-
Zoho CRM Plus Resources
Zoho Books Resources
Zoho Subscriptions Resources
Zoho Projects Resources
Zoho Sprints Resources
Zoho Orchestly Resources
Zoho Creator Resources
Zoho WorkDrive Resources
Zoho Campaigns Resources
Zoho CRM Resources
Writer Get Started. Write Away!
Writer is a powerful online word processor, designed for collaborative work.