Validate form based on subform fields not working

Validate form based on subform fields not working

Can anyone tell me why this doesn't work? It runs on validate of my Projects form, which has the subform Tasks_Subform.

An equivalent workflow run on validate of the Tasks form itself works perfectly, but the below code just seems to do nothing. The Projects form simply closes regardless of whether the conditions have been met and doesn't show the alert message.

Thanks in advance.

for each  row in input.Tasks_Subform
{
if(row.Closed = "Yes" && row.FY_complete_task = "")
{
alert "Specify the financial year the task was completed";
cancel submit;
}
}

    Zoho Desk Resources

    • Desk Community Learning Series


    • Digest


    • Functions


    • Meetups


    • Kbase


    • Resources


    • Glossary


    • Desk Marketplace


    • MVP Corner


    • Word of the Day


      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

                        • CRM Community Learning Series

                          CRM Community Learning Series


                        • Tips

                          Tips

                        • Functions

                          Functions

                        • Meetups

                          Meetups

                        • Kbase

                          Kbase

                        • Resources

                          Resources

                        • Digest

                          Digest

                        • CRM Marketplace

                          CRM Marketplace

                        • MVP Corner

                          MVP Corner




                          Zoho Writer Writer

                          Get Started. Write Away!

                          Writer is a powerful online word processor, designed for collaborative work.

                            Zoho CRM コンテンツ




                              ご検討中の方