How to configure a formatter on the idea form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
Hi, I want to configure a formatter on the Idea form, which shows comment related to that Idea dynamically. These comments are not OOB ones, and these are stored in a separate cf_comment table. I tried to build a UI macro, but the issue is it is not dynamic and the not retrieving dynamic sysid of the Idea to add comments.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
Hello @Siris ,
The reason may be your UI Macro feels static is because it doesn't automatically know the current record context. By using g_form.getUniqueValue() (on forms) or passing the Idea sys_id explicitly (in portal), you ensure the comments are tied to the correct Idea dynamically.
refer this may it help :
If my response helped mark as helpful and accept the solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
instead why not show those Comments in related list of that Idea record?
If the "cf_comment" table has field referring to Idea table then you can simply configure Related list and add
if not then you can create a defined relationship and then add that on form
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
53m ago
@Ankur Bawiskar Hi, yes the comments are dynamically linked to IDEA. Yes, adding as a related list quick solutions, but I want to add a formatter that shows the comments. The main issue is formatter does not get the sysID of the idea dynamically. With change of the record its not triggered.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
7m ago
you can try to see some OOTB UI macros how they are doing.
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader

