I have three different issues. To start with, we have a custom solution to generate contract/offer documents (PDF) through Visualforce. The terms and conditions are saved in a rich text field of custom object and its value is printed in Visualforce. The issues are the following:
- Copy paste rich text value from sandbox to production does not work properly. I believe this is an API Version issue cause i am copying from sandbox to production where versions are different. And copy-paste does not work properly. When i do this between sandboxes, value of rich text remains the same. I have opened a case to Salesforce support for confirmation.
- As a workaround, i tried to do use SUBSTITUTE function to replace the necessary values. One of the values i need to replace is the following:
<apex:outputText rendered="{!IF(clause.csclm__Sequence__c < 12, true, false)}" escape="false" value="{!SUBSTITUTE(SUBSTITUTE(clause.csclm__Final_Rich_Text__c, 'Arial', 'Arial Unicode MS'), 'style=""' , 'style="margin-top: 0pt; margin-bottom: 0pt;"')}"></apex:outputText>
but does not seem to work. Should i use differently the double quote symbol? Because this is why the replacement does not work
- As far as i have seen, i can do SUBSTITUTE up to 3 (three) levels. I cannot use (SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE)))). I can only use up to: SUBSTITUTE(SUBSTITUTE(SUBSTITUTE))). If i want to do multiple SUBSTITUTIONS, what is the recommended way to achieve it?