How can I prepopulate an html field with a table?

frappe
Kilo Expert

On my change management form I would like to pre-populate an HTML field with a table I want my users to fill out.  

For example I have a "What are the risks?" field that is HTML.

When a user creates a change request I want this field to come pre-populated with a table to make it easier for the user to enter information.

Risk
Likelihood is will occur (High, Medium, Low)
Mitigation

What's the best way to achieve this?

1 ACCEPTED SOLUTION

Doh, I tried that first and thought I could just copy and paste my table since it was an HTML field.     I converted my table to html and then added it and life is good, thank you for the quick response.


View solution in original post

5 REPLIES 5

Chuck Tomasi
Tera Patron

Yes, you can,



Go to the dictionary and set your default value for the text field. Enter the HTML in there and it will become your default table.




System Dictionary - ServiceNow Wiki



If this is a variable on a catalog item or record producer form, let me know.


Doh, I tried that first and thought I could just copy and paste my table since it was an HTML field.     I converted my table to html and then added it and life is good, thank you for the quick response.


You are very welcome Kristin. Please mark the answer correct if it was successful so others can find it quickly in the future. Thanks.


@Chuck Tomasi  Hello, Can you help me the solution for this, I have a similar requirement, I'm trying to open the link you have provided, but it's not opening.

 

Thanks in advance!