Dynamic clickable Knowledge Articles in Record Producer based on dependent variable selection
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
I have an HR Record Producer with two dependent choice variables:
- Q1 - Help Area (7 choices)
- Q2 - Details (28 dependent choices based on Q1)
When the user selects a value in Q2, I want to display a box below the field containing 4-5 related Knowledge Articles.
The box should display something like:
Related Knowledge Articles
• KA0012345 - How to Update Bank Details
• KA0015678 - Payroll FAQ
• KA0019876 - Tax Declaration Process
• KA0014321 - Salary Slip Guide
Each KA Number and Title should be clickable, and clicking it should open the Knowledge Article in a new page/tab.
I already created a custom mapping table containing with Q1 ,Q2 ,Country,KA number,KA Title
What I Tried
Option 1 - Custom Variable (Widget)
I created a Custom Variable and added a widget to dynamically display the Knowledge Articles.
Unfortunately, the widget does not render inside the Record Producer in Employee Center/Service Portal. I found that widgets/UI Macros have limitations depending on the portal implementation.
Option 2 - Rich Text Label
Now I'm considering using a Rich Text Label variable and dynamically updating its HTML through a Catalog Client Script or GlideAjax.
I am not sure whether this is the recommended approach or if there is a better OOTB solution.
My Questions
- What is the recommended approach for dynamically displaying multiple clickable Knowledge Articles inside a Record Producer in Employee Center Pro?
- Can a Rich Text Label be updated dynamically using HTML after the user changes the Q2 value?
- Is there any supported OOTB component or widget that can display dynamic Knowledge Article links inside a Record Producer?
Each article should be clickable and open the corresponding Knowledge Article.
The solution must work in Employee Center Pro / Service Portal for a Record Producer.
If anyone has implemented something similar or can suggest the best practice, sample implementation, or architecture, I would really appreciate your guidance.
Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
The best practice is to leverage Contextual Search or AI Search Assist, which can proactively surface relevant Knowledge Articles based on the user's inputs . Please refer to OOTB "Create Incident" record producer.
However, since you already maintain a custom mapping table that links specific Help Area (Q1) and Details (Q2) values to Knowledge Articles a practical and straightforward solution is to use an HTML variable to display the mapped articles.
- Create an HTML variable on the Record Producer (mark it as Read Only).
- Create an onChange Catalog Client Script on the Details (Q2) variable.
- In the client script, call a GlideAjax Script Include and pass the selected Q1/Q2 values.
- The Script Include queries your mapping table and returns the matching KB article numbers and titles.
- Build the HTML dynamically and populate the HTML variable using
g_form.setValue(). - Render each article as a clickable link that opens the Knowledge Article in a new tab/window.
Sample client script -
Onchange client script on q2 variable