Some PDIs are currently unavailable, and PDI actions are paused. View the latest updates here. Read More

How to add FAQ template fields "Question" and "Answer" to the default form template

AdamUMC
Tera Guru

Hi there,

I want to add the OOTB FAQ template fields "Question" and "Answer" to the default form template.
I do not see them in the default form "Form Layout". Default form is from table "kb_knowledge", while the OOTB FAQ template is from "kb_template_faq".

I want to do this because of conversion reasons; there where in exsisting articles "Article body", "Question" and/or "Answer" were filled in, this fields must be shown one below the other, to be able take over (copy-paste) their content to somewhere else.

Thanks in advance!



1 REPLY 1

vaishali231
Kilo Sage

Hey @AdamUMC 

The default Knowledge form is based on the kb_knowledge table, while the OOTB FAQ template uses the kb_template_faq table. The Question and Answer fields are defined on kb_template_faq, not on kb_knowledge.

Because of this table hierarchy, fields that exist only on the child table (kb_template_faq) are not available in the Form Layout of the parent table (kb_knowledge), so they cannot be added directly to the default Knowledge form.

For your migration/conversion use case, you have a few options:

  1. Open the records using the FAQ article form, where the Question and Answer fields are available.
  2. Create temporary fields on kb_knowledge and populate them from the FAQ fields for migration purposes.
  3. Create a custom formatter or UI component to display the FAQ values on the Knowledge form.
  4. Export the data from both tables and combine the values externally if the goal is simply to copy or migrate the content.

************************************************************************************************************************************

If this response helps, please mark it as Accept as Solution and Helpful.

Doing so helps others in the community and encourages me to keep contributing.

Regards

Vaishali Singh

Servicenow Developer
Linkedin - https://www.linkedin.com/in/vaishali-singh-2273361bb