Missing ‘Required’ attribute for Long Text Area fields?

Here is the snapshot for a “Text Area” field, notice that the “required” attribute is available i.e. we can set this field as required:

enter image description here

Here is another snapshot for a “Long Text Area” field, notice that the required attribute is missing on this screen:
enter image description here

Do you know if this is intentional? If so, where is this documented? (I tried but couldn’t find anything related to this)

The issue is, we had a “Text Area” field in sandbox which was set as “required”. Due to a new requirement, this field was updated to “Long Text Area” (we didnt notice the missing “required” attribute when the datatype was changed). Apparently, the deployment of this field to PROD org failed coz the field was marked as required in the PROD org however it was set as “not required” (note we didnt change any attribute we just changed the datatype) in the sandbox.

Eventually, we had to uncheck the required flag in PROD and then migrate the field.

Wondering if this is a known limitation? Or is there another way to set the fields of type “Long Text Area” as required when they are created?

Answer

For some reason, Salesforce does not allow you to make a number of types required. It’s no use asking why.

Workaround: make a validation rule that checks whether this field is filled.

Attribution
Source : Link , Question Author : Rajiv Bhatt , Answer Author : Sander de Jong

Leave a Comment