You need to sign in to do that
Don't have an account?

formula in Visualforce
staff,
I wish my Visualforce page was built according to the form elements. Show an accurate information block from a value of a field. I did so, but it does not work: (When passed a single parameter, it works, but as I used the formula OR, did not work)
<apex:pageBlockSection title="Produtos e Acessoria Técnica" columns="3" rendered="OR({!Pesquisa_de_mercado__c.Canal_de_Distribui_o__c == 'CONCRETEIRA'},{!Pesquisa_de_mercado__c.Canal_de_Distribui_o__c == 'INDUSTRIA'} )" >
Does anyone know a way to accomplish?
thank you
Hi,
Try this,
Thanks,
Devendra
All Answers
Are you trying to vailidate the values from same sObject? You can enter this formula in the validation rules for the sObjects.
Hi,
Try this,
Thanks,
Devendra
Rap_dev,
Syntax by Devendra@SFDC is perfect. Another way you use access OR function in visualforce page is as below:
Please try this -
<apex:pageBlockSection title="Produtos e Acessoria Técnica" columns="3"
rendered="{!if(Pesquisa_de_mercado__c.Canal_de_Distribui_o__c == 'CONCRETEIRA' || Pesquisa_de_mercado__c.Canal_de_Distribui_o__c == 'INDUSTRIA', true, false )}" >
In visualforce page we can use ternary Operator -
{!if(condition, true part, false part)}
Note: If you satisfied with this solution please mark as solution for help other users in a same query
Thank You,
Raj Jha