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
nagalakshminagalakshmi 

how to make formula field required

Hi, 

 

How to make the formula filed required. Please any one help me.

 

 

Thanks,

Lakshmi.

nylonnylon

Hi,

You can't make formula fields required.

Isn't it possible to use Validation Rules instead?

What kind of formula do you use?

Starz26Starz26

If you make the fields that make up the formula required then by default the formula is required.

 

Since the formula field is not editable by the user, the required attribute is not applicable.

arishi0arishi0

You could always:

     - create a new field and assign the value from the formula field to it.

     - then create a  validation rule that requires a value on this field. Or make the new field required which ever one works best for you.

 

This will use a field on your object BUT will allow you to require the formula without having to require the source fields for the formula.

 

Regards,

Mauricio

LakshmanLakshman

Hi Lakshmi,

 

Formula fields are always filled witht the value you specify in it. It is automatic and hence some value always goes into it.

Instead if you have suppose a formula field like

 

Custom_Formula_Field__c

 

and in it you have a formula like

 

Some_other_field__c

and you are doing some operations in it.

 

Then you can make Some_other_field__c as a required field.

 

Let me know what you want to do.

 

Regards,

Lakshman