You need to sign in to do that
Don't have an account?
Depton
checkbox = true then 2 picklist must filled in??
Hi
I am trying this
AND( (Interesado_en_demo_online__c = TRUE), NOT( ISBLANK( ISPICKVAL(Purchasing_Authority__c ), ISPICKVAL(Total_of_Employees__c ))))
Interesado is a checkbox that when is checked must make the 2 picklist fields mandatories?
got the : Error: Incorrect number of parameters for function 'ISPICKVAL()'. Expected 2, received 1
Any ideas?
Thank you
Here you go:
also you don't have to write:
"Interesado_en_demo_online__c = TRUE" when you're evaluating if a Checkbox field is checked, all you need is the API Name of the field.
Interesado_en_demo_online__c = "Interesado_en_demo_online__c = TRUE"
NOT( Interesado_en_demo_online__c) = Interesado_en_demo_online__c = FALSE
All Answers
Here you go:
also you don't have to write:
"Interesado_en_demo_online__c = TRUE" when you're evaluating if a Checkbox field is checked, all you need is the API Name of the field.
Interesado_en_demo_online__c = "Interesado_en_demo_online__c = TRUE"
NOT( Interesado_en_demo_online__c) = Interesado_en_demo_online__c = FALSE
Gracias my friend!!!!!!
:))))
Where's my cerveza???
Here in Barcelona waiting for u my friend!! ;)
The next time I visit Madeira PT, I'll have to make a side trip!
you see...that would be perfect!! I do have family in Portugal so might tell one of my cousins to invite you!!
:))
The island or mainland?
Mainland, but I do have more than 30 relatves over there!! my mum is portuguese....but you must come to Barcelona!
:))
If not next time (send me a private) tell me the beer you want and I will buy it and send it via Internet!!
:))
trigger TaskTrgWithCheckbox on Task( after insert, after update )
{
Map<Id, Account> accountsToBeUpdated = new Map<Id, Account>();
for( Task t : trigger.new )
{
if(trigger.isInsert
|| ( trigger.isUpdate
&& ( trigger.oldMap.get( t.Id ).Call_Date__c != t.Call_Date__c
|| trigger.oldMap.get( t.Id ).Description__c != t.Description__c )
)
)
{
if( t.WhatId != null && String.valueOf( t.WhatId ).startsWith( '001' ))
{
Account acc = new Account( Id = t.WhatId );
acc.Last_Call_Date__c = t.Call_Date__c;
acc.Last_Call_Description__c = t.Description__c;
accountsToBeUpdated.put( acc.Id, acc );
}
}
}
if( accountsToBeUpdated.values().size() > 0 )
update accountsToBeUpdated.values();
}