You need to sign in to do that
Don't have an account?
How to use Else IF Condition in formula field?
Hi Every one,
I have three check boxes and it have different input fields. When i select perticular checkbox respective amount field should display. same for other two also. So I have to check three conditions and respective field have to fetch.
Here is my formula:
IF(Travel_Request__r.Cash_Advance__c ==True, Travel_Request__r.Amount__c ,0,
Else If(Travel_Request__r.Travel_Card_Loaded__c ==True, Travel_Request__r.Travel_card_Amount__c , 0 ),
Else if( Travel_Request__r.Travelers_Cheque__c ==True,( Travel_Request__r.Denomination__c * Travel_Request__r.Quantity__c),0))
)
How can i do it with out else condition.
I have three check boxes and it have different input fields. When i select perticular checkbox respective amount field should display. same for other two also. So I have to check three conditions and respective field have to fetch.
Here is my formula:
IF(Travel_Request__r.Cash_Advance__c ==True, Travel_Request__r.Amount__c ,0,
Else If(Travel_Request__r.Travel_Card_Loaded__c ==True, Travel_Request__r.Travel_card_Amount__c , 0 ),
Else if( Travel_Request__r.Travelers_Cheque__c ==True,( Travel_Request__r.Denomination__c * Travel_Request__r.Quantity__c),0))
)
How can i do it with out else condition.
IF(Travel_Request__r.Cash_Advance__c ==True, Travel_Request__r.Amount__c ,If(Travel_Request__r.Travel_Card_Loaded__c ==True, Travel_Request__r.Travel_card_Amount__c , if( Travel_Request__r.Travelers_Cheque__c ==True,( Travel_Request__r.Denomination__c * Travel_Request__r.Quantity__c),0)))
Can you please Let me know if it works or not!!!
If it helps don't forget to mark this as a best answer!!!
Thanks,
Raj
Thanks for your response and formula is saved but it is not working properly means if i select second check box ,2nd IF condition fetching data. Only first IF condition executing.
Yes I did same but it taking First condition in IF Expression. No There is no Else in Formula field it is not checking second condition.
In order fetch datafrom other related object Based on criteria condition.
Generaly Multiple IF condtion will works like If Else method [syntax: If(condition,truevalue,falsevalue) -- > IF(condition,true, IF(condition,true,false)).
Can you please test it properly.
Thanks,
Raj
When i asked where you are putting i meant where in the salesforce?
Formula for updating field.