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
adccadcc 

How to Update date field for picklist value

Hello,

 

In my salesforce database i have one picklist field and one date type Date field.

On each picklist option selection i have to update Date with current date.

Please tell how to do it.

 

In another  case, on picklist value selection i have to display current date in a textbox.

I mean like other application as soon as i change picklist value Date textbox value should be changed and displayed.

 

Please provide me the solution for above cases at the earliest.

 

Any help will be highly appreciated.

 

Thanks in Advance!!

 

aalbertaalbert

You could create a workflow rule that evalutes to true when the picklist value changes and that causes a Field Update to fire updating the date field. 

 

Example:

The workflow formula would be something like:  ISCHANGED(picklist_field_name__c)

Then in the field update, set the date field to TODAY.

cda023cda023

can this be done without workflow or triggers?  Unfortunately, I don't have enterprise edition