Beginner Issues with Validation Functions

Beginner Issues with Validation Functions

Hey Zoho Community,

I am new to Deluge, and Zohos functions in general but have a decent understanding of python, java, etc...

I am having issues creating a simple validation function.
I have tried many google search results and this one even shows some code from Zoho's knowledge base.

I copied the code EXACTLY except I do not have a reference number field so I used First_Name field as an alternative while doing testing.

Every time I try to execute I get this 


No matter what I put there I cannot seem for it to work properly.

If it matters on the big picture of what I am trying to accomplish with my validation function is, I am having issues with people using emojis in their forms. I know this validation would have to be on the side of the forms not the side of the modules however, I am trying to get the concept to work first.

Haven't even got to the point of this being the issue but targeting all Emojis seems to be a complex regex problem as well. If anyone has extra feedback on that It would be appreciated. These are my concepts for that separate issue.

Regex Possible Options for targeting Emojis:
match(/([\uE000-\uF8FF]|\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDDFF])|\s/)
OR
match(?!.*(?:[\uE000-\uF8FF]|\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDDFF])




                            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

                                        • How to Add Users to your Organization in ZohoMail?

                                          A better clarity so you can create other users to start using Zoho Mail. You can directly Add Users from the Control Panel to your Organization. You can invite users with the existing email address. If the person (user) already uses ZohoCRM, then you can import users from Zoho CRM. You can also import them using a .csv file. (if you are planning to add them in Bulk)  In this topic, We will be discussing on how to Add and Invite users only.  The Import options are self explanatory. ____________________________________________________________________________________________________________


                                        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