cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Workflow Hero

Force locale to en_GB/English for certain documents

Hello,

 

I need to set the locale of some docgen documents in Salesforce to en_GB or English date formatting, DD/MM/YYYY and completely ignore the user's locale settings. This is because I have multiple users that require to print in this format but most of the time don't have those locale settings (they want to view salesforce and print other documents in their local date format).

 

I have tried doing "MERGEFIELD <<Field>>  \@ DD/MM/YYYY" \* MERGEFORMAT" but I get mixed results, sometimes the month or day gets swapped around. 

 

Ideally, I'd like to use the "locale" section on the "Docgen Package details" section to force English locale on certain documents. However, if I put in "en_GB", it doesn't seem to work.

 

Anyone have any ideas?

 

Thank you.

 

 

Labels: (1)
0 Kudos
Reply
1 Reply
Workflow Hero

Re: Force locale to en_GB/English for certain documents

@lingard Not sure if you are aware, but Drawloop provides tags that format date fields for you. If you reference the screen shot included with this post, you can see that we can format to DD/MM/YYYY with " __s>>" appended to any date field tag. So you can simply use this tag or wrap it within an IF statement using MS Word if you only want to use that format situationally. 

 

Best,

0 Kudos
Reply