You need to sign in to do that
Don't have an account?
Mehul Makwana
How to render Div tag based on condition
Hello Developers,
In VF email template want Amount field to be rendered based on IF condition like if currency is JYP or USD then render.
Please Note: I do not want to go for controller want to achive this through VF Email template only.
Thanks
Mehul
In VF email template want Amount field to be rendered based on IF condition like if currency is JYP or USD then render.
<div style="{!IF({!relatedTo.Related_Opportunity__r.CurrencyIsoCode}='JYP', 'display:block', 'display:none')}" > Amount : <apex:outputText value="{!relatedTo.CurrencyIsoCode}" rendered="true" /> </div>
Please Note: I do not want to go for controller want to achive this through VF Email template only.
Thanks
Mehul
Please also try below code:
All Answers
Try below code and let me know is it working or not.
Hope this will help you. Let me know if it helped or you need any more assistance.
Please mark this is as the solution if it solved your purpose.
Thanks,
Sohan Raj Gupta
Thanks for the reply, you have give me same code with OR condition and it's give me same syntax error.
Can you please help me to fix the syntax error.
Please also try below code:
Put the div inside an output panel and rerender the output panel. Hope that helps.
You can also try below code:
Hope this will help you. Let me know if it helped or you need any more assistance.
Please mark this is as the solution if it solved your purpose.
Thanks,
Sohan Raj Gupta