You need to sign in to do that
Don't have an account?
Matthew Allen
changing text format in Visualforce to currency
Hi,
I have some visualforce code that I noticed was returning some strange formatting. I think it's becuase I am referencing some number and currency fields as text so it was coming back as 0.0 instead of 0. It also had no £ at the beginning.
I have looked at trying to edit this myself but have had no luck.
Can you help?
Matt
I have some visualforce code that I noticed was returning some strange formatting. I think it's becuase I am referencing some number and currency fields as text so it was coming back as 0.0 instead of 0. It also had no £ at the beginning.
I have looked at trying to edit this myself but have had no luck.
Can you help?
<apex:outputText label="AccNAme" value="{!IF(Field1 = "Group",Field2,Field3)}" /></apex:outputLabel>Thank you
Matt
All Answers
Greetings to you. It is a pleasure to be in touch with you again.
You can use something like this:
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in future.
Thanks and Regards,
Khan Anas
Thanks again for your help, however I am getting an error saying it needs to be terminated using OutputText which appears t obe what you have done?
I thought maybe given you a bit more code may help?
Thank you so much for your help
I think you missed to close outputLabel tag:
I hope it helps you.
Kindly mark this as solved if the information was helpful.
Regards,
Khan Anas
it is ignoring this bit -
style="vertical-align:top; text-align:center;font-family:calibri;font-size:35px;color:{!IF(Field1 >0, '#3BB97C', '#d9d9d9')};"/>
I really appreciate your help, I really do. Thank you so much.
Reference: http://www.infallibletechie.com/2013/10/how-to-set-currency-format-in.html
Regards,
Khan Anas
Regards,
Khan Anas