Conditionally mandatory field

Conditionally mandatory field

Hi, i have a problem with On Add/Validate. I'm doing quite simple form (few fields hide on load, few condition for fields to show on user input - every condition on the same dropdown field) to my company contact site. But i'm trying to do one of on load hidden fields as mandatory if there were be executed condition for showing that field. Below i'm pasting my Validate code, can someone tell me what's wrong with it?

I read lots of posts on this forum and i can't see differences between my code and code written by other people. Sorry for my english.

  1. if input.kategoria = "Anulacja zamówienia" && input.NrGK = null
  2. {
  3.       alert "Wpisz nr GK aby anulować zamówienie.";
  4.       cancel submit;
  5. }
    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 コンテンツ




                              ご検討中の方