Make Service portal User Profile Fields Readonly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-10-2020 08:21 PM
Hello,
I want to make Service portal User Profile Fields Readonly. I followed the below steps.
1.cloned widget name :user profile
2.added code next to the fields I wanted to make as readonly
for ex department
OOB: <p ng-if="::displayField('sys_user', 'department', true)"><strong class="pad-right">${Department}</strong><sp-editable-field editable-by-user="data.isLoggedInUsersProfile" table="sys_user" table-id="data.sysUserID" field-model="data.sysUserModel.department"></sp-editable-field></p>
change :
<p ng-if="::displayField('sys_user', 'department', true)"><strong class="pad-right">${Department}</strong><sp-editable-field editable-by-user="false" table="sys_user" table-id="data.sysUserID" field-model="data.sysUserModel.department"></sp-editable-field></p>
3.added this cloned widget to page name : user profile through designer
4.tested it
I followed the same steps. I am able to make the fields readonly. However, it gives me some error on the portal. Please see the attached screenshot. Do you know how I can resolve this error on the portal?
Thank you!
- Labels:
-
Employee Service Center
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-11-2020 10:16 AM
Hi Mike,
I checked there is no RCA for the widget I created.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-11-2020 10:50 AM
it may be coming from a script include that uses that function. Do you have any RCA records that are "Requested" or "Invalidated"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-11-2020 12:32 PM
No script include that are invalidated or requested. I don't know why its giving that error.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-11-2020 01:16 PM
Hi Sabnam,
You may want to reach out to Hi support. I do not recommend commenting out that line, it possibly could be masking a larger issue. The best option is to submit a case to Hi support to assist.
Regards,
Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-12-2020 09:39 AM
Hi,
Were you able to make all the fields read only on User profile ?
Thanks