openURL multiple parameters- tip

openURL multiple parameters- tip

Hi,
I'm writing this up as a tip because I worked it out while I was writing the question...

update- THIS DOES NOT WORK- sorry, will update when I figure it out!

I have some stateless forms and I am trying to bring some data across from Form 1 to Form 2.
- we need the 'recordID' so we can keep this consistent across the entries in the various parts of the form
- we also need the calculated account number from CRM so we can show or hide customisations to certain clients
- we also have a map of other important values called 'rec'

Here's the problem- the 'recordID' is automatically generated so you can't specify a value in the URL, the parameters are meant to be 

URL?FirstField=" + input. FirstField + "&SecondField=" + input.SecondField + rec,"same window");

But this doesn't work- the answer is to put the 'recordID' which does not have an associated value at the end of the URL

This is the format that works-
openUrl("https://creatorapp.zohopublic.com/company/app/form-embed/form/FormName?Calculated_Account_Number=" + input.Calculated_Account_Number + "&recordID=" + rec,"same window");

Now I have to figure out why the 'rec' map doesn't actually add the values into the fields on form 2, but seems to be required - other bits don't work if it is not declared.

If you have an easier way or any greater insight, please share!

    Access your files securely from anywhere

        Zoho Developer Community




                                  Zoho Desk Resources

                                  • Desk Community Learning Series


                                  • Digest


                                  • Functions


                                  • Meetups


                                  • Kbase


                                  • Resources


                                  • Glossary


                                  • Desk Marketplace


                                  • MVP Corner


                                  • Word of the Day



                                      Zoho Marketing Automation


                                              Manage your brands on social media



                                                    Zoho TeamInbox Resources

                                                      Zoho DataPrep Resources



                                                        Zoho CRM Plus Resources

                                                          Zoho Books Resources


                                                            Zoho Subscriptions Resources

                                                              Zoho Projects Resources


                                                                Zoho Sprints Resources


                                                                  Qntrl Resources


                                                                    Zoho Creator Resources



                                                                        Zoho Campaigns Resources


                                                                          Zoho CRM Resources

                                                                          • CRM Community Learning Series

                                                                            CRM Community Learning Series


                                                                          • Kaizen

                                                                            Kaizen

                                                                          • Functions

                                                                            Functions

                                                                          • Meetups

                                                                            Meetups

                                                                          • Kbase

                                                                            Kbase

                                                                          • Resources

                                                                            Resources

                                                                          • Digest

                                                                            Digest

                                                                          • CRM Marketplace

                                                                            CRM Marketplace

                                                                          • MVP Corner

                                                                            MVP Corner





                                                                              Design. Discuss. Deliver.

                                                                              Create visually engaging stories with Zoho Show.

                                                                              Get Started Now