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

ASAP :Date and Time validation Rule

I have two fields:

1. Contact BD:  it is a picklist field with YES and No value.

2. TimeOf Contact: It is a date and time field .


Validation condition : When  user enters NO in Picklist , the date entered in the TimeOf Contact field should not be visible on detail page or it should come blank.



This cannot be done using validation rule. Its used only to validate the data, it will not change field's value.


So you will need to write workflow to do this. Entry criteria would be Contact BD Equals Yes and TimeOfContact not equal to (leave field blank). In the immediate action add field update to make the TimeOfContact field to blank value.




Thanks a Lot.

Shashikant SharmaShashikant Sharma

Do you want to change the visibility onlly not the value in the Time Of Contact. Means do you want to show the time value again if value set to Yes in BD conatct picklist. Please let me know if you want this.