Implement Regex in Layout and Validation rules - Zoho Desk

Implement Regex in Layout and Validation rules - Zoho Desk

Hello all,

 

We are excited to announce that users can now implement Regular Expressions (Regex) in our layout and validation rules. This new functionality allows for more flexible rules to be created when designing and validating forms.

What is Regex? 

Regex is a pattern-matching language that is used to match and search text based on specific patterns or rules. With this new functionality, you can create rules that require specific patterns to be followed in input fields, such as phone numbers, email addresses, and more. This not only helps ensure accurate data collection but also saves time and effort in the data processing.

 

Here are some of the benefits of using regex

  1. Increased Efficiency: Using Regex can save you more time when searching for specific patterns in a large amount of data.
  2. Improved accuracy: Regex allows you to specify exactly what you are looking for, reducing the possibility of missing or misidentifying the data.
  3. Great Reusability: Once you have created a regex pattern, you can reuse the same pattern in different contexts.

Regex in layout rules

By using regex in layout rules, you can now define a pattern for a primary field value and determine how the data should be formatted. This can be useful in determining the form behavior based on the format of the data given and eliminates the need to create several multiple criteria. 

 

For example, let's say you have a checkout form layout where users can enter their credit card information. One of the fields is for the credit card number, which must be a valid 16-digit number. You want to display a second field for the user's card expiration date only if they have entered a valid credit card number. 

 

In such a case, you can create a layout rule using the regex criteria (Such as Card number + Matches Regex + Credit Card Number). This would check whether the user's input for the credit card number field matches the regex pattern. If it does, it would then display the expiration date field. 







Regex in validation rules 

By using regex in validation rules, you can ensure that an end user's input matches a specific format, and reject any input that does not match this pattern. This can be useful in ensuring that only valid input is accepted and preventing errors or security vulnerabilities that could result from accepting invalid input. For example, you can create a validation rule using regex to validate whether an end user enters an email address in a specific format.


 

While defining the Regex criteria, you can either manually create a custom regex pattern or choose a desired pattern from the regex gallery.


 

To know more about the full potential and detailed implementation steps of Regex, refer to our help article -> Regex in Layout and Validation Rules.

 

The introduction of Regex in our platform expands the capabilities of our layout and validation rules and opens up new possibilities for customizing forms. 

 

We welcome all our users to tryout this new functionality and provide us with feedback on your experience. As always, we strive to improve our platform continually and provide our users with the best possible experience.

 

Thank you for your continued support!

 

Have a great day!

Regards,

Varsha P | Zoho Desk - User education






                            Zoho Desk Resources

                            • Desk Community Learning Series


                            • Digest


                            • Functions


                            • Meetups


                            • Kbase


                            • Resources


                            • Glossary


                            • Desk Marketplace


                            • MVP Corner


                            • Word of the Day



                                Zoho Marketing Automation
                                        • Sticky Posts

                                        • 2024 Email Authentication Standards: Elevating Security with Google and Yahoo

                                          In contemporary email communication, email authentication plays a pivotal role in mitigating email fraud, spam, and phishing attacks. Brace yourself for a new level of security. Starting February 2024, Gmail and Yahoo will be implementing robust email
                                        • Announcing the New and Improved Article Editor

                                          KBase articles are known to help customers, find solutions to problems on their own and set the stage for ticket deflection. That said, the way you present your KBase content is the clinching factor that ensures your customers stick around to consume it.  We took it upon ourselves to build an editor that allows you to publish articles without delving into the code. Well, at least for the most part. With more options and a redefined interface, the article editor in Zoho Desk is now better than ever!
                                        • Announcing the Happiness Rating 2.0!

                                          Today, we are excited to introduce you to Happiness Ratings 2.0. We’ve enhanced our happiness rating offering with more features and reports to help you make more sense of your customer service. Here is the list of new additions and improvements that this release incorporates.    Rating Option in Emails All this while, your customers were required to click the rating link from within an email to view the rating options. Today, you can choose to display the options (Good, Bad & Okay) just below the
                                        • Webinar 2: Supercharged customer support for growing business

                                          Join us for this webinar and learn how to step up your support game using a real-time communication platform to generate happier, more successful customers. In this live webinar, we will will discuss the importance of SalesIQ for your support team and how it can help you:  Understand your customers better and their journeys to proactively support and engage them even before they ask for help.  Integrating real time conversations into Zoho Desk’s Support, providing a conversational customer service
                                        • Edit and Delete options in Comments

                                          A lot of teams have been using ticket comments extensively to collaborate everyday. Notification Center further improved this experience by bringing real-time updates. As we continue to build more improvements to this experience, we've shipped a small-yet-important


                                        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 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

                                                                    





                                                                    




                                                                        Design. Discuss. Deliver.

                                                                        Create visually engaging stories with Zoho Show.

                                                                        Get Started Now