ZOHO CRM Client Script Disable Save Button

ZOHO CRM Client Script Disable Save Button

Hello Team,

1. by the client script we can now Disable and enable the save & save and new button.
2. We can also apply the condition on button.
3. Show the message

Code:- 
  1. //..............Button Save...............
  2. var buttonObj1 = ZDK.Page.getButtons();
  3. buttonObj1api = buttonObj1[0].getApiName();
  4. var save_btn = ZDK.Page.getButton(buttonObj1api);
  5. //..............Button Save New...........
  6. var buttonObj2 = ZDK.Page.getButtons();
  7. buttonObj2 = buttonObj2[2].getApiName();
  8. var save_btn_new = ZDK.Page.getButton(buttonObj2);
  9. //.....................Disable Button..............................
  10. save_btn.disable();
  11. save_btn_new.disable();
  12. //...........enable Button..........
  13. save_btn.enable();
  14. save_btn_new.enable();

===============================================================================


Thanks & Regards
Piyush Goyal
Zoho Developer || 3+ years Experience
+91-8619164837

    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