Form Template on problem record based on user language

Elena Spıru
Mega Guru

Hello,

 

I have a requirement to create a template on the Problem table.

In English: it should be called This is a Template with field description: english text

In German: it should be called Dies ist eine Vorlage with field description: german text

  • users with english language should see only This is a Template
  • and users with german language should see onlyDies ist eine Vorlage

Since I saw that you can't do translations on sys_template, for now I created 2 templates and I was thinking to create a logic based on the current user's language to show one or another but don't know if this is the best approach.

Is there another way/methods to do this?

Thank you,
Elena

6 REPLIES 6

Chaitanya ILCR
Mega Patron

Hi @Elena Spıru ,

 

you can use query BR to hide those

 

you can create 2 template

 

for this to be more scalable 

1. create a language field on on the sys_template table 

2. whenever a template is created set the language of the template

3. use a query BR on the template table to only show the logged in user's language related templates

 

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

Hello! Thanks for the suggestion but the query BR should be in which table? because if you have it on the sys_template, it won't trigger when you open a problem record.

Ankur Bawiskar
Tera Patron
Tera Patron

@Elena Spıru 

you can't use script in the condition

but check this link and it has workaround and enhance

Email Client Template should visible to specific role. 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hey! Thanks but I see the workaround is for email client template and my task was for the form templates.