You need to sign in to do that
Don't have an account?

Formula Field for Check Box Result
I'm having some trouble with a formula. I want to populate a date field with the days date when the opt out check box is checked. Anybody have any suggestions?
Here's what I tried which didn't work:
IF salesforce Opt_Out__c = "True" TODAY()
Here's what I tried which didn't work:
IF salesforce Opt_Out__c = "True" TODAY()
A formula field will not help you with populating the date when the checkbox was actually checked. You will need a workflow rule or a process builder to do that. Simply follow the below steps.
Create a custom field of the type Date (NOT a formula field)
Create a workflow rule as below
Evaluation criteria : Everytime a record is created and edited to subsequently meet the criteria (3rd Option)
Workflow entry Criteria
Optout checkbox = TRUE
Now select the date field you had created in Workflow field Update and your formula for the same would be simply below
Activate your workflow rule and you should be good to go !
All Answers
Since the date you wish to record is the date in which the box was checked or the value becomes true, then a formula field would be a solution to your problem since formulas are based on values and not events. What you are looking for is, and what i recommend, is using process builder (https://trailhead.salesforce.com/en/business_process_automation/process_builder) which will run when the record is updated or created. It should then record the date of the change via a record update. Read up on those through the link provided. Any further questions welcome.
Hope this helps!
AM
A formula field will not help you with populating the date when the checkbox was actually checked. You will need a workflow rule or a process builder to do that. Simply follow the below steps.
Create a custom field of the type Date (NOT a formula field)
Create a workflow rule as below
Evaluation criteria : Everytime a record is created and edited to subsequently meet the criteria (3rd Option)
Workflow entry Criteria
Optout checkbox = TRUE
Now select the date field you had created in Workflow field Update and your formula for the same would be simply below
Activate your workflow rule and you should be good to go !