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:-
- //..............Button Save...............
- var buttonObj1 = ZDK.Page.getButtons();
- buttonObj1api = buttonObj1[0].getApiName();
- var save_btn = ZDK.Page.getButton(buttonObj1api);
- //..............Button Save New...........
- var buttonObj2 = ZDK.Page.getButtons();
- buttonObj2 = buttonObj2[2].getApiName();
- var save_btn_new = ZDK.Page.getButton(buttonObj2);
- //.....................Disable Button..............................
- save_btn.disable();
- save_btn_new.disable();
- //...........enable Button..........
- save_btn.enable();
- save_btn_new.enable();
===============================================================================
Thanks & Regards
Piyush Goyal
Zoho Developer || 3+ years Experience
+91-8619164837