Client Script: Edit page onChange doesn't fire when selecting "-None-" value.

Client Script: Edit page onChange doesn't fire when selecting "-None-" value.

I have a client script using the onChange event on the standard edit page that updates another field based on value selected in a pick list.  This works great except I just realized when you select the "-None-" option in the pick list if you wanted no value set then it doesn't fire the event... which means I have no feedback to know the field is set empty so I can update this other field appropriately.

This definitely feels like it shouldn't be that way and a bug/oversight unless I'm missing something?  If you are setting a fields value from something to nothing then I'd consider that a "change" for sure.  As a work around I suppose I can/have to create another client script on the onSave event with the logic that checks if that field is set empty and if so then update the other field.

    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