You need to sign in to do that
Don't have an account?
Baguiar
Display a HTML based on an IF statement in VF
I've searched a bit and found some posts about using the IF statement within a VF page, but wasn;t clear about the possibility of using it for a simple display of a html page.
The controller is the standard ACCOUNT object.
All I need is something like this:
<apex:page standardController="account"> {!IF(isnull(account.JOB__c),"No Job"," <html> some HTML coding here.... </html>" ) } </apex:page>
The syntax is probably wrong, but I was wondering if this is possible.
Thanks in advance!
B
That use case is probably not the best for an "IF" - This is way to do what you are describing:
All Answers
That use case is probably not the best for an "IF" - This is way to do what you are describing:
Thanks!
It works pretty much but with one detail:
I have a html code for a twitter page exactly where you have the "Has job" sentence. like this:
All the HTML works fine, but it does not render the Twitter_page_id__C with the line:
the page shows up, backgrouond, twiter logo, but not the feeds, because it can't read the twitter id from the line above. Might be syntax again ?
Thanks in advance!
B
BTW,
If I use only the HTML, without the <apex:outputpnael> , it works just fine with {!account.Twitter_page_id__C}
B
never mind.. it is working now. with the same code. Might have pasted the field without the ". But thanks!