Pass values from stateless form into function

Pass values from stateless form into function

I have a function w/ a list of dates and a list of strings that populates a bunch of data in form1 - it works when executed.
I want to use statelessForm inputs dateField and dropDown to populate dateList and genreList in the below function and run it.
First, Is there a way to have a multi-select date field? Either way, this is what I have in the function now. How do I code the statelessForm submit button to pass the values, and how do I modify the below function to accept the statelessForm values? TIA!
  1. void getGenreSales()
  2. {
  3.   dateList = {"Aug 06 2023","Sep 07 2023"};
  4. for each  saleDate in dateList
  5. {
  6. genreList = {"Garage","Doo-Wop","Rockabilly"};
  7. for each  genre in genreList
  8. {
  9. \\populate a bunch of data...

    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 コンテンツ




                              ご検討中の方