Auto-fill Fields Left Blank
To discuss or ask questions about this article, select the discussion tab above.
This article provides instructions on how to automatically set the value of a blank field once it has lost focus. This method allows you to see the value prior to saving the record.
Step 1. Edit the form
The solution is to add the following code to the end of your PDM_MACRO.
evt="onBlur="if(this.value == '') this.value = 'Your text';""
<PDM_MACRO NAME=dtlTextbox hdr="Header1" attr=your_field evt="onBlur="if(this.value == '') this.value = 'Your text';"">
For r11.x releases it is recommended that you edit your pages via the Web Screen Painter. For older releases you must edit the files directly.
Step 2. Clear the web cache
The final step is to clear Service Desk's cache. The methods vary depending on release.