Hi I was wondering if anyone has built a custom widget where essentially it uses a Text Area to allow a user to type in information and then it is saved to the widget. So essentially Id like to make a work note on the case that allows an analyst to type in relevant information to be saved. The issue I am having is finding a way to keep the text in the box when switching views it is wiped.
Here is the html it is very basic widget atm.
<!DOCTYPE html>
<html>
<head>
<style>
body {
background-color: #EDEFF6;
color: #4E4F63;
font-family: Arial;
}
textarea {
padding: 12px 20px;
box-sizing: border-box;
border: 1px solid #ccc;
font-size: 16px;
font-family: Arial;
resize:none;
width: 100%;
outline: none;
border-radius: 4px;
}
img {
width: 200px;
height: auto;
}
</style>
</head>
<body>
<img src="https://www.servicenow.com/content/dam/now-www/en-us/images/global-nav/logo/servicenow-header-logo.svg" alt="ServiceNow Logo"><br><br>
<b>Please Submit all work notes in to the text area below</b> <br><br>
<textarea rows="40" cols="70">
</textarea>
</body>
</html>
If anyone has some ideas or can direct me to a resource would be greatly appreciated.
Thanks