The name field is being auto generated How to set the name to Employee Name and also want to display status of the Joining Document. I am unable to do so.
Other Problem i am Facing is I want to add a button to Employee Doctype.
I used the add button function but no result.!
I want to add a function to it that whenever it is clicked a new Joining Document Will Be opened for the Employee
The Function of Joining Document is that it provides information regarding employees have been provided the fundamental resources from the company i ll paste my code too which i have done in Employee.js Document Please Look To it,
refresh: function(frm) {
var me = this;
erpnext.toggle_naming_series();
And my problem is i dont want to name the Doctype.
The name field Displayed in the above Image is my Problem i have also made a selection in the image which is being autogenerated to a random text.
And also please help me for my other PRoblem in Employee Module.
i.e. How to add a button in the Employee Module.
i have pasted my code earlier please see through it and let me know about the problem.
@daizy
you are checking in Customize form. Please Open your Doctype from Setup > Doctype.
There is field Auto name. set with any field from your Doctype.
See below screenshot -
Here My Doctype is Post Code, as you see there is field post_code. So, I used it as my auto name > field:post_code.
Check at the bottom of the screenshot.
How can I put a validation for the same so that No employee can have two or more than two Joining Document
Please Look on my 2nd Problem too Posted above with this.!
here I considered Joining Document is your Doctype. Replace with proper name and try.
for more details about custom script go through following link. custom script examples
I have already Created a Joining Document for an Employee but the “make” button isnt changing to “view” Button i.e. the page isnt executing the “if” condition it is directly going to else condition. What I have tried is Similar to the Job Applicant Module but in former case cant change the button to view
Please help regarding the following code:
if (!cur_frm.doc.__islocal) {
if (cur_frm.doc.__onload && cur_frm.doc.onload.joining_document) {
cur_frm.add_custom_button((“Joining Document”), function() {