You need to sign in to do that
Don't have an account?
Jagriti Dubey
How to add 2 condition in if condition in vf page.That if one field has value than show its value and if its null than show -- in place of it.
{!IF(acc['Fax'] != null,'--'')}
it is keep throwing error of unvalid condition if condition
it is keep throwing error of unvalid condition if condition
You have to just put another condition in the query before '--' and your query will work fine, like below query.
{!IF(acc['Fax'] != null,acc['Fax'],'--')}
I suggest to visit this link, it will help you regarding multiple conditions for rendered attribute
https://developer.salesforce.com/forums/?id=906F000000097sIIAQ
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks and Regards,
Deepali Kulshrestha
www.kdeepali.com