+ Start a Discussion
lsateeshklsateeshk 

FIled Update when value in picklist changes

Hello..,

 

     I have a picklist (named select_option) with 4 values .., like a,b,c,d. and i want to have date & time whenever a value in picklist changes.., like initially if i select 'a' then our date & time should be today's date and time.., and whenever the value changes to any of the options.., then date & tme should be updated to that corresponding date & time..,

 

Thanks in advance.., quick repiles much appreciated.., its very urgent..,

 

Lucky.

imutsavimutsav
You should be able to do this with the formula field of the type date time and with the help of isChanged() method on your picklist you should be able to populate the value of your datetime field. If this doesn't work then you should write a trigger and check if the value of the picklist changes then update your date/time field with datetime.now().


Thanks
Utsav

[do mark it as a solution or give kudos if you think i helped you any bit. ;) ]

....