- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-05-2022 05:37 AM
Hi Community,
We want to hide few fields for a catalog item in service portal which we achieved using UI policies but the issue here is after the ticket is submitted in the portal the hidden fields are showing up and the data is showing up if an action is taken in provider view(service desk). please find the attached screenshot for reference,
Those are checkboxes we hid them in service portal and I checked "Create Legal Sub Task" checkbox in service desk and the value changed to true in portal, Is there aa way we can hide completely in portal view so that the end user not see the fields.
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-13-2022 08:36 PM
Hi! In our case, we had to clone an OOTB widget: Variable Summarizer
PART 1: CLONE THE WIDGET
After you clone the widget, update Body HTML template:
1. Look for these lines:
<label class="m-t-xs m-b-none text-muted"><b>{{::variable.label}}</b></label>
<div ng-if="!variable.multi_row">
2. Change them into:
<label ng-if="!variable.multi_row && variable.display_value != 'false'"
class="m-t-xs m-b-none text-muted"><b>{{::variable.label}}</b></label>
<div ng-if="!variable.multi_row && variable.display_value != 'false'">
3. Look for this line:
<div ng-if="variable.multi_row">
4. Add this code above the div in STEP3:
<label ng-if="variable.multi_row"
class="m-t-xs m-b-none text-muted"><b>{{::variable.label}}</b></label>
5. SAVE.
PART 2: UPDATE CONFIGURATION
Second half of the process is to update the widget used to render the variables in the portal.
1. Navigate to Standard Ticket > Standard Ticket configuration
2. Open the record for table: sc_req_item
3. In the Tab Configurations related list, open the record: Additional Details
4. In the Type field, change the value into: Custom
5. After STEP4, the field Widget will be displayed.
6. In Widget field, select the name of the widget cloned in PART1.
7. UPDATE/SAVE.
That's it! It should now hide the unchecked variables in the service portal.
For PART2, you can also refer to the attached file 🙂
Please mark my answer as correct if it helped you solve this issue.
You can also hit like/helpful if it did help you in any way. Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-21-2023 12:18 AM