Prevent meal requests beyond stay duration in hotel booking forms

Prevent meal requests beyond stay duration in hotel booking forms

When guests book a stay at a hotel, they are often asked for a few key details like when they’ll be arriving, when they plan to leave, and whether they’d like to include meals during their stay.
While this sounds simple, things can get tricky if the form allows guests to request meals for more days than they’re actually staying. For instance, a guest staying for 3 nights shouldn’t be able to request meals for 5 days.
To ensure a seamless and accurate reservation process, it’s important to build in logic that catches these inconsistencies before the form is submitted. This not only helps the hotel manage resources effectively but also prevents errors that could lead to billing issues or guest dissatisfaction.

So the objective here is to deny any form submission when the number of days for meal request exceeds the number of days of stay (days between the check-in and check-out dates).

So we first create a form with dedicated fields for check-in date, check-out date, and the number of days meals are required.



Logic

  • The difference between check-in and check-out gives the total number of days of stay.

  • Meals can be provided only for the number of days within this stay period.

  • If the user enters a value greater than the stay duration in the Number of days meals required field, the form submission should be denied.

To calculate the number of days between the check-in and check-out days, add a Formula field (name it as Number of days of stay) and configure the formula like this using the DayDiff  function.




















You can keep this Formula field hidden if you want to in the field properties as shown.


Configuring rules for denying form submissions

  1. In your form builder, navigate to the Rules tab and go to Deny Submissions.
  2. Click Configure Now.



  3. Define the condition to deny form submissions:
    If Number of Days you require meals is greater than Number of days of stay
    (select the Formula field), then show the denial message.



  4. Click Add to view the rule summary.

If the respondent enters a number of meal days that exceeds their stay duration, the form will automatically deny submission.

 

      Create. Review. Publish.

      Write, edit, collaborate on, and publish documents to different content management platforms.

      Get Started Now


        Access your files securely from anywhere

          Zoho CRM Training Programs

          Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.

          Zoho CRM Training
            Redefine the way you work
            with Zoho Workplace

              Zoho DataPrep Personalized Demo

              If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.

              Zoho CRM Training

                Create, share, and deliver

                beautiful slides from anywhere.

                Get Started Now


                  Zoho Sign now offers specialized one-on-one training for both administrators and developers.

                  BOOK A SESSION







                              Quick LinksWorkflow AutomationData Collection
                              Web FormsEnterpriseOnline Data Collection Tool
                              Embeddable FormsBankingBegin Data Collection
                              Interactive FormsWorkplaceData Collection App
                              CRM FormsCustomer ServiceAccessible Forms
                              Digital FormsMarketingForms for Small Business
                              HTML FormsEducationForms for Enterprise
                              Contact FormsE-commerceForms for any business
                              Lead Generation FormsHealthcareForms for Startups
                              Wordpress FormsCustomer onboardingForms for Small Business
                              No Code FormsConstructionRSVP tool for holidays
                              Free FormsTravelFeatures for Order Forms
                              Prefill FormsNon-Profit

                              Intake FormsLegal
                              Mobile App
                              Form DesignerHR
                              Mobile Forms
                              Card FormsFoodOffline Forms
                              Assign FormsPhotographyMobile Forms Features
                              Translate FormsReal EstateKiosk in Mobile Forms
                              Electronic Forms
                              Drag & drop form builder

                              Notification Emails for FormsAlternativesSecurity & Compliance
                              Holiday FormsGoogle Forms alternative GDPR
                              Form to PDFJotform alternativeHIPAA Forms
                              Email FormsFormstack alternativeEncrypted Forms

                              Wufoo alternativeSecure Forms

                              WCAG

                                      Create. Review. Publish.

                                      Write, edit, collaborate on, and publish documents to different content management platforms.

                                      Get Started Now







                                                        You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.




                                                            Manage your brands on social media


                                                              • Desk Community Learning Series


                                                              • Digest


                                                              • Functions


                                                              • Meetups


                                                              • Kbase


                                                              • Resources


                                                              • Glossary


                                                              • Desk Marketplace


                                                              • MVP Corner


                                                              • Word of the Day


                                                              • Ask the Experts


                                                                Zoho Sheet Resources

                                                                 

                                                                    Zoho Forms Resources


                                                                      Secure your business
                                                                      communication with Zoho Mail


                                                                      Mail on the move with
                                                                      Zoho Mail mobile application

                                                                        Stay on top of your schedule
                                                                        at all times


                                                                        Carry your calendar with you
                                                                        Anytime, anywhere




                                                                              Zoho Sign Resources

                                                                                Sign, Paperless!

                                                                                Sign and send business documents on the go!

                                                                                Get Started Now




                                                                                        Zoho TeamInbox Resources





                                                                                                  Zoho DataPrep Demo

                                                                                                  Get a personalized demo or POC

                                                                                                  REGISTER NOW


                                                                                                    Design. Discuss. Deliver.

                                                                                                    Create visually engaging stories with Zoho Show.

                                                                                                    Get Started Now








                                                                                                                        • Related Articles

                                                                                                                        • Tips for creating visually appealing forms

                                                                                                                          Table of Contents Overview What details matter the most in a form? Form Title and Description Fields Choice fields Image Choices to market your products Talk to your respondent with dynamic fields Submit button Structuring a long form Section and ...
                                                                                                                        • Automation features in Zoho Forms that can save your time

                                                                                                                          In today's time-constrained online world, manual processes may cause you to move slowly, directly affecting your business. Zoho Forms offers you with key automation features to handle your business's needs and deliver a seamless user experience. With ...
                                                                                                                        • Understanding Card Forms

                                                                                                                          Assume you meet a new person and want to get along with them, and you say: Hey, what is your name, phone number, address, likes and dislikes, and so on? Being bombarded with questions before they have finished answering the first can frighten the ...
                                                                                                                        • How to ensure a consistent date format in Zoho Forms and Zoho Sheet to prevent data mismatch

                                                                                                                          To prevent data mismatch caused by inconsistent date formats, it's essential to align the date settings in both Zoho Forms and Zoho Sheets. Configuring Date Format in Zoho Forms: In the form builder, navigate to Settings > Date & Time > Date Format. ...
                                                                                                                        • Sharing Translated Forms

                                                                                                                          Table of Contents Sharing a translated form URL Sharing translated forms as QR code Embedding translated forms on website UTM Tracking in translated forms Sharing a translated form URL Once you have translated your form into the required languages, ...
                                                                                                                          Wherever you are is as good as
                                                                                                                          your workplace

                                                                                                                            Resources

                                                                                                                            Videos

                                                                                                                            Watch comprehensive videos on features and other important topics that will help you master Zoho CRM.



                                                                                                                            eBooks

                                                                                                                            Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho CRM.



                                                                                                                            Webinars

                                                                                                                            Sign up for our webinars and learn the Zoho CRM basics, from customization to sales force automation and more.



                                                                                                                            CRM Tips

                                                                                                                            Make the most of Zoho CRM with these useful tips.



                                                                                                                              Zoho Show Resources