function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Problem in applying validation rule


I am trying to make an application in Force called Defect Tracking system.

In this application I have 3 user roles namely QA, Developer and Project Manager.


If any defect occurs in a project , the QA logs in the defect. The project manager can assign the defect to any of the developers to solve it. The developers solve the defect and send it to the QA to review it.


Now in my application in Force, I have 4 main tabs.. namely, Team(which has a Designation field and is a drop down),

Projects , Defects and Reports.


I want to apply a Validation rule which will generate a new field called Defect Number as soon as a new defect is added. 


as soon as i click the save button in the defect detail page , a new field should be added in the page  called defect number..

Please tell me how shall I accomplish this.





Best Answer chosen by Admin (Salesforce Developers) 

You can create an Auto Number field on Defect (Custom object) and add it to relevant page layouts. This field will not be visible on your Defect Edit page, but visible on defect detail page.