Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2022 12:26 PM
Hi Team,
I am using Copy of Data Table widget in Service Portal to display outage records. Here , if i click on any one of the records , it is opening the record and fields are editable. What changes do we need to make the fields "read-only".
Thank you
Solved! Go to Solution.
1 ACCEPTED SOLUTION

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2022 12:32 PM
You can create an onLoad client script with below script and UI type as Service Portal
var fields = g_form.getEditableFields();
for (var x = 0; x < fields.length; x++) {
g_form.setReadOnly(fields[x], true);
}
Please mark this response as correct or helpful if it assisted you with your question.
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2022 12:32 PM
You can create an onLoad client script with below script and UI type as Service Portal
var fields = g_form.getEditableFields();
for (var x = 0; x < fields.length; x++) {
g_form.setReadOnly(fields[x], true);
}
Please mark this response as correct or helpful if it assisted you with your question.