What is Client Script?
Client Scripts in ERPNext are JavaScript snippets that run in the user's browser to auto-fill fields, add validations, show/hide sections, or trigger actions on form events.
Writing Client Scripts
Go to Settings → Client Script → New. Select the DocType and event (onload, refresh, before_save, validate). Write standard Frappe client API code (frm.set_value(), frm.set_df_property(), frappe.call()). Client Scripts deploy instantly without restart.
Common Client Script Use Cases
Auto-fill delivery address from warehouse, hide fields based on item type, validate custom mandatory conditions, auto-calculate totals in custom child table, fetch values from a custom API on field change. No Python knowledge required — just JavaScript.
Infonoxe Technologies specialises in ERPNext implementation and custom software for Indian businesses.
Related Terms
Implement ERPNext for Your Business
Expert ERPNext implementation, customisation, and support for Indian businesses.
