Try ERPNext Buy Support Partners Foundation

Modifying New Activity from Customer doctype

I want this checkbox to be checked by default
location: under selling > Customer doctype button at the end
I cant find New Activity doctype to modify it to default “1”

Open the customization , open that field , go to Display default replace 0 with 1 then update (saving) and reload the page then try to create new activity .

1 Like

Go to the list view of this particular doctype, click on Menu > Customize. It should take you to the customize form of the doctype.

Next, expand the field “Public” and change the default from 0 to 1.

Hope this helps.

2 Likes

I already know this steps and has done a lot of custom doctype.
This not help Because there are no Public Checkbox in Event Doctype.
Did you know the name of New Activity Doctype from the button Event under customer Doc?

This not help Because there are no Public Checkbox in Event Doctype.

Can you help us with a screenshot of the same? Please send a screenshot of the entire page so that we can get an idea about this.

screenshot of the entire page

Did you tried to write a custom script ,

like this
frappe.ui.form.on(‘Activity Log’, {
before_save: function(frm, cdt, cdn) {
var d = locals[cdt][cdn];
frm.doc.child table.forEach(function(d) {
d.child public = 1;