You can use the consoleLib.clearFields() system function to clear the displayed values associated with the specified fields. If you do not specify any fields, the function clears them all. The function does not affect any variables bound to the displayed fields.
consoleLib.clearFields(
fields ConsoleField in)
The following example shows the consoleLib.clearFields() function. For the ConsoleForm record used in the example, see clearFieldsByName():
consoleLib.clearFields(myCustForm.custNumber, myCustForm.custName);