Consuming JS for Child Table

I have created one “Demo Doc” (Doctype) and added “Child Doc” as child table in that DocType. I want to consume script for that Child Doc controls. Example: I have one field “City” (As type= Data) in the “Child Doc” and want to set the default value using the script on load of “Demo Doc”.

@nishith
You can write Custom Script for that,
Please go through custom script examples
Link - custom script

@nishith, Also refer following script examples -

Thanks, Priya

1 Like

I want to write the script for the Child table control, not for the master doc type.

Thanks @priya_s :blush: