Subform Time field to string.

Subform Time field to string.

Good afternoon All.

I have a Subform 'Delivery_Receiving_Hours' that captures Day (Dropdown), Time_Open (Time), and Time_Close (Time). I need to capture this data and send it to a multiline field in the CRM. The code, posted below, below will capture the day but keeps posting the time as N/A. I am performing the tests and I am putting time in. I can't figure out why it's not capturing the time input. Any help would be greatly appreciated.
  1. // Initialize the combined information string
  2. combined_info = "";

  3. // Access the subform and iterate through its rows
  4. for each row in input.Delivery_Receiving_Hours {
  5.     // Check and retrieve values for Day, Time_Open, and Time_Close
  6.     day = ifnull(row.Day, "Unknown Day");
  7.     time_open = ifnull(row.Time_Open.toString("hh:mm a"), "N/A");
  8.     time_close = ifnull(row.Time_Close.toString("hh:mm a"), "N/A");
  9.     
  10.     // Concatenate the current row's information
  11.     combined_info = combined_info + day + ": " + time_open + " - " + time_close + "\n";
  12. }

  13. // Log the combined information for debugging
  14. info "Combined Info: " + combined_info;

  15. // Update the CRM field with the combined information
  16. newLocation.put("Dock_Hours", combined_info);

    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


                                                                                  Zoho Show Resources


                                                                                    Zoho Writer Writer

                                                                                    Get Started. Write Away!

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

                                                                                      Zoho CRM コンテンツ






                                                                                        Nederlandse Hulpbronnen


                                                                                            ご検討中の方