Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
**Details**
1. This script will format the JSON data in string fields on forms.
2. There is on OOB attribute "json_view" which can be added to field but it always reqires an extra click and has loading time issues.

**How to use**
1. Run this script as Fix Script.
2. Replace the table name and encoded query as per your requirement.
3. Replace the field to be formatted as per the table selected.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/*
This script will format the JSON data in string fields on forms.
There is on OOB attribute "json_view" which can be added to field but it always reqires an extra click and has loading time issues.
*/
var chReq = new GlideRecord('change_request'); // Glide table.
chReqch.get('c83c5e5347c12200e0ef563dbb9a7190'); // sys_id of record, can be replaced with encoded query for multiple records.

chReq.u_json_field = JSON.stringify(JSON.parse(chReq.u_json_field), null, "\t");
chReq.update();
Loading