Home Analyst Portal

Remove Portal tasks in different languages

Ingrid_GlatzIngrid_Glatz Customer Adept IT Monkey ✭✭

I was told to remove the "Cancel Request" as a portal task. I used the custom.js to add

app.custom.formTasks.add('ServiceRequest', null, function (formObj, viewModel) {
 formObj.boundReady(function () {
$( ".taskmenu li:contains('Cancel Request')" ).hide() }); });

This works fine after re-opening the portal in English. When I opened the portal in German, the "Request Abbrechen" was still visible. So I added a second section with into custom.js

app.custom.formTasks.add('ServiceRequest', null, function (formObj, viewModel) {
 formObj.boundReady(function () {
$( ".taskmenu li:contains('Request Abbrechen')" ).hide() }); });

Unfortunately, this doesn't work, the task in German is still visible. I can switch the protal between languages. English is gone, German still present. Re-Opening portal a couple of times doesn't help either.

Does anybody know how I can remove the task in different languages? Do I have to add the script part in a different way covering all languages? I need to do it for French language also.

Thanks.

Ingrid

Best Answer

Answers

  • Ingrid_GlatzIngrid_Glatz Customer Adept IT Monkey ✭✭

    Thanks Justin,

    this works for all languages.

    Ingrid

Sign In or Register to comment.