frappe-client-script-generator

Generate production-ready JavaScript client scripts for Frappe DocTypes.

25|14|Updated Dec 15, 2025
One-click install
npx skills add https://github.com/Venkateshvenki404224/frappe-apps-manager --skill frappe-client-script-generator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: frappe-client-script-generator
Source: https://github.com/Venkateshvenki404224/frappe-apps-manager/tree/main/frappe-apps-manager/skills/frappe-client-script-generator
Command: npx skills add https://github.com/Venkateshvenki404224/frappe-apps-manager --skill frappe-client-script-generator

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Customizing Frappe forms with client-side logic, dynamic validations, and interactive behavior requires writing JavaScript, which can be repetitive and prone to errors. This Skill automates the generation of production-ready client scripts.

Core Features & Use Cases

  • Form Event Handlers: Generate JavaScript for core form events like refresh, setup, onload, validate, and before_submit.
  • Field Change Logic: Implement dynamic behavior based on field changes, including data fetching, calculations, and conditional display.
  • Custom Buttons & Actions: Add custom buttons to forms that trigger server-side methods or complex client-side logic.
  • Use Case: Generate a client script for the 'Sales Order' DocType that automatically fetches customer details when a customer is selected, and validates that the delivery date is not in the past.

Quick Start

Generate a client script for the 'Item' DocType that automatically sets the 'default_warehouse' based on the selected 'item_group' when the form loads.

Frequently Asked Questions about frappe-client-script-generator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate client scripts for Frappe forms without writing JavaScript manually?

Client script generation automates production-ready JavaScript for Frappe DocTypes. It handles event handlers, field validations, dynamic data fetching, and custom buttons, eliminating repetitive coding and reducing errors in form customization.

Can I automate field validation and conditional logic in ERPNext forms?

Yes. Generated client scripts implement field change handlers, conditional UI behavior, and validation rules. Examples include fetching customer details on selection, validating dates, and dynamically showing or hiding fields based on form state.

What Frappe form events can be automated with generated client scripts?

Generated scripts cover core Frappe events: refresh, setup, onload, validate, and before_submit. They also handle single and multi-field change handlers, child table (grid) events, and standard custom button patterns across DocTypes.

Do I need to know JavaScript to use generated Frappe client scripts?

Generated scripts are production-ready and output JavaScript code, so you don't write it manually. However, understanding Frappe's form API and DocType structure helps you specify requirements accurately for the generated output.

How do custom buttons in generated scripts interact with server-side Frappe methods?

Generated custom button patterns trigger server-side methods or complex client-side logic. The scripts structure button events to call Frappe's RPC methods and handle responses, enabling forms to execute backend operations from the UI.

What's the fastest way to set up dynamic form behavior across multiple ERPNext DocTypes?

Generate client scripts for each DocType specifying the event type, affected fields, and desired behavior. The output is ready to deploy, avoiding manual JavaScript coding for common patterns like conditional display, calculations, and data fetching.