Title Field: Default value ignored. Bug or Feature?

Hi all,

I define a simple doctype with a data field as title field. For the data field, I want to set a default value.

However, the default value is ignored if the field is set as the title field.

This happens at least in the 14 and 15 frappe versions.

Is this intended, or can I change this behavior?

Thanks!

Just found the answer:

It is intended behavior… Although I don’t understand why…

} else if (df.fieldname === meta.title_field) {
    // ignore defaults for title field
    value = "";

Found this in the /workspace/development/frappe14/apps/frappe/frappe/public/js/frappe/model/create_new.js file.

Regards,
DomCa