In any application, a welcome message is not essential but can enhance the user experience by providing a personalized greeting, confirming successful login and creating a positive first impression provided it remains simple and does not distract users from their primary purpose.
In ServiceDesk Plus, a greeting message can be added to the self-service portal using an HTML widget. Refer to the steps outlined below to configure it.
<h3 id="welcomeMsg"
style="text-align: center;
color: #FFFFFF;
background-color: #7792DF;
font-size: 28px;
font-weight: bold;
margin-top: 20px;
padding: 10px;
border-radius: 8px;">
</h3>
<script src="/scripts/jquery_min.js"></script>
<script>
$(document).ready(function () {
if (window.parent && window.parent.sdp_user) {
$("#welcomeMsg").text(
"Welcome back, " + window.parent.sdp_user.USERNAME + "!"
);
}
});
</script>
2) Go to Admin > General Settings > Advanced Portal Settings, then click Customization. From there, navigate to the Advanced tab and click Configure. Select the page you want to modify and click Edit.
3) Provide a name for the widget, upload the HTML file and save the widget. Once saved, the widget will appear in the list (for example, "Welcome"). Drag and drop the widget into the workspace, then save and publish.
Now you will see a welcome message with the dynamic username based on the logged-in user as shown in the screenshot below.
We hope you find this helpful.