- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2022 05:15 AM
Hello,
I've a requirement, when user language is not one of the languages for the service portal list, then user language to be set to English and it should reload the portal page.
I've configured to update the user language in server script but stuck how to reload the form (how to call client script from server script to reload the form). Can some one help
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-09-2022 04:52 AM
Hi,
You can't do browser refresh from Server Script. If you are trying this for a widget then try this
In server script add this line if you need refresh the page (inside the if block where you are changing the language)
data.refresh = 'true';
In client script add this line to refresh the browser after if sees the flag
if(c.data.refresh == 'true'){
location.reload();
}
Note: If the refresh flag is not handled properly then it could lead to infinite refresh. Make sure your logic is proper.
Thank you,
Palani
Palani
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-10-2022 06:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-09-2022 08:35 AM
Did you try what I have suggested above?
Regards,
Shloke
Regards,
Shloke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-10-2022 06:03 AM