You need to sign in to do that
Don't have an account?
Can't format via javascript when renderAs PDF
I have used javascript to split up the output of a currencyfield so that I can get the first currency and put it in parens while getting rid of the converted currency if there is one displayed.
This trick is working fine.
However, I cannot use this trick to format the output of a outputField for a currency field when the page attribute renderAs='PDF'
Does anyone know how I can use javascript in a renderAs='PDF' or how to edit the manipulate a currency outputField in the controller?
To give you more background I am making a custom display for a currency field. The user can input the currency in any isocode and it will display as:
USD $###,###.## (EUR ###.###,##)
The EUR in the example is the actual currency on the object.
Thanks,
-Dru
You cannot use javascript or any kind of AJAX when rendering a page as PDF. You can try formatting the currency using apex:outputText formatting.