How to auto populate content under text field in Knowledge

eshwarparuchuri
Kilo Contributor

Hello,

I am trying to auto populate some of my content in the text field whenever a users opens Knowledge Create New. There is already a template out of the box.

find_real_file.png

But I created a new module for called Create new MSG under knowledge for which the Knowledge base would be MSG.

When users select Create new MSG, I have my own template that I would like to auto populate in the text field. I created a similar template that I would like to use but for some reason it will not populate when I open Create new MSG.

Thank you,

Eshwar.

5 REPLIES 5

Sharique Azim
Mega Sage

Hi Eshwar,



Did you try populating with templates? Keep in mind the template field needs to be made   available on Kb_knowledge table. There is also a client script to invoke the template.   You can refer to apply template onchange script.



In the template, create a record on kb_knowledge and use the text field as required , refer the picture below. The user and the group marks for exclusive users/groups. select global and empty user/group for public.



find_real_file.png


Regards,


Shariq



Mark correct if it is.


And you can also refer http://wiki.servicenow.com/index.php?title=Creating_a_Template#gsc.tab=0




Mark helpful if it helps.


Hi Shariq,



I created the exact same thing, but it doesn't work.



find_real_file.png



I deactivated the out of the box template.



Thank you,


Eshwar.


Hi Eshwar,



Re-iterating myself,


"Keep in mind the template field needs to be made   available on Kb_knowledge table. There is also a client script to invoke the template.   You can refer to apply template onchange script."



Did you get a chance to also add the field and the client script?



Regards,


Shariq