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