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
GauriiGaurii 

validation rule that if a Due Date or comment is entered then Subject field is required?

 Could there be a validation rule that if a Due Date or comment is entered then Subject field is required?Help

@anilbathula@@anilbathula@

Hi ,

Try this validation rule:-

AND(OR(DueDate<>NULL,Comments<>NULL),ISBLANK(Subject))

souvik9086souvik9086

Do like this

 

AND ( OR( Description <> NULL, ActivityDate <> NULL) , Subject = NULL)

 

If this post is helpful please throw Kudos.If this post solves your problem kindly mark it as solution.

Thanks

GauriiGaurii

It Gives the following error:

Error: You referenced an unsupported field type called "Date/Time" using the following field: ActivityDate

souvik9086souvik9086

I missed that, I checked now that DueDate/ActivityDate field is not supported in Validation Rule checking. It is not supported by salesforce.

 

Thanks