+ Start a Discussion
VijaykumarVijaykumar 

Guys...How to make the number field value as default 1. While creating the new record the field value should be default 1 for custom object.

Best Answer chosen by Vijaykumar
Maharajan CMaharajan C
Hi Vijay,

If you wnat ot set the default value in custom field then it's straight forward...Just follow the below steps...

Go to that custom object in setup  =>  Open that field ==> Edit => General Options => Default Value.

User-added image

But if you are trying to set the default value in standard field then you have to override the new button... You can't set it in field level directly...

1. Default Value for Standard Fields using URL Hack
https://www.salesforcebolt.com/2021/02/default-value-for-standard-fields-in.html

2. Or use the Apex Trigger , Flows to update the default value... But it will show only after save button clicked...

Thanks,
Maharajan.C

All Answers

Maharajan CMaharajan C
Hi Vijay,

If you wnat ot set the default value in custom field then it's straight forward...Just follow the below steps...

Go to that custom object in setup  =>  Open that field ==> Edit => General Options => Default Value.

User-added image

But if you are trying to set the default value in standard field then you have to override the new button... You can't set it in field level directly...

1. Default Value for Standard Fields using URL Hack
https://www.salesforcebolt.com/2021/02/default-value-for-standard-fields-in.html

2. Or use the Apex Trigger , Flows to update the default value... But it will show only after save button clicked...

Thanks,
Maharajan.C
This was selected as the best answer
VijaykumarVijaykumar
Hi Maharajan,
Thanks for the quick workaround that fixed my issue...!!!