Difference between revisions of "Auto-fill Fields Left Blank"
(New page: Category:Customizations This article provides instructions on how to automatically set a value of a field once it has lost focus. This method allows you to see the value prior to savin...) |
(→Step 1. Edit the form) |
||
| Line 7: | Line 7: | ||
The example that follows adds the code to the dtlTextbox PDM_MACRO. The code can be added to other PDM_MACROS, but not likely all of them. | The example that follows adds the code to the dtlTextbox PDM_MACRO. The code can be added to other PDM_MACROS, but not likely all of them. | ||
| − | <!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><PDM_MACRO NAME=dtlTextbox hdr="Header1" attr=your_field evt="onBlur="if(this.value == '') this.value = 'No Information';""><!--c2--></div><!--ec2--> | + | <!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><PDM_MACRO NAME=dtlTextbox hdr="Header1" attr=your_field evt="onBlur="if(this.value == '') this.value = 'No Information';""><!--c2--></div><!--ec2--><br> |
== Step 2. Clear the web cache == | == Step 2. Clear the web cache == | ||
Revision as of 15:53, 14 January 2008
This article provides instructions on how to automatically set a value of a 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.
The example that follows adds the code to the dtlTextbox PDM_MACRO. The code can be added to other PDM_MACROS, but not likely all of them.
Step 2. Clear the web cache
The final step is to clear Service Desk's cache. The methods vary depending on release.
For r11.x releases of Service Desk:
Publish your changes via the Web Screen Painter. The process of publishing automatically initiates a pdm_webcache.
For older releases:
Execute pdm_webcache from a command prompt on the Primary Server. There is no need to run this command on the Secondary Servers.