
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2018 01:32 PM
I have created some True/False fields for the sys_user record that I want to be available on the User Self Service portal, so that they can select them. I have set them as available when you navigate to the sys_user table, select a user and go to the Self Service View, but how do I get them to show when a user goes to his profile from the portal?
Solved! Go to Solution.
- Labels:
-
Service Portal

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2018 02:20 PM
Good call out. I looked in to this. You'd need to clone the User Profile widget, then make a few tweaks, one of which is to comment out or remove this line, 158, in the client script section:
if (models[tableName][field] && models[tableName][field].type === "boolean") return false;
Which is basically telling it to not even display if there are true or false fields. So I commented this out, then in the HTML, I added a line like this for example, on line 34:
<p ng-if="::displayField('sys_user', 'u_name_of_field', true)"><strong class="pad-right">${What I Want to Show Here}</strong><sp-editable-field editable-by-user="data.isLoggedInUsersProfile" table="sys_user" table-id="data.sysUserID" field-model="data.sysUserModel.u_name_of_field"></sp-editable-field></p>
Basically replace u_name_of_field with the column name of the field you want to add and don't forget to edit inside the ${ } what you want it to display, then finally in the client script section, for example, line 7/8, I did:
sys_user: ['name', 'introduction', 'title', 'department', 'location', 'photo',
'manager', 'company', 'u_name_of_field'],
Please mark reply as Helpful/Correct. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2018 01:48 PM
Hi,
You'd want to design the form just like you would for anything else, except choose the view as Service Portal:
So basically Context Menu > Configure > Form Design
Please mark reply as Helpful/Correct. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2018 02:16 PM
I did exactly this, and they show in this view. The problem is that the do not show in the End User Portal, when a user clicks on their name and selects Profile (the widget)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2018 02:24 PM
Understood. See my response below for instructions.
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2018 01:55 PM
There is a service portal view but it does not seem to allow for true/false fields. At least not in my company instance which is Jakarta patch 10. You can try that but you may have to clone the widget.