How can I clear the value value of the input box? I try to use cleartext, but the original value is still there after saving

As Russ said, we will need to see the HTML of the field you are trying to clear. Aside from that, I can tell you that WebUI.clearText() (which ultimately uses Selenium’s clear() method) is notoriously flakey, particularly with alternate implementations of text fields. Otherwise, if it’s your standard <input> element, it tends to work fine.

The best way to handle clearing text across the board is to select all the text in the field, then send a backspace or delete key. Unfortunately, as far as I know, the first part of that task is not currently doable with the WebUI.sendKeys() method (see this topic). Here’s how you could do it with Selenium though:

import org.openqa.selenium.*
import com.kms.katalon.core.webui.common.WebUiCommonHelper

WebElement element = WebUiCommonHelper.findWebElement(findTestObject('path/to/object'), 30);
element.sendKeys(Keys.chord(Keys.CONTROL, 'a'));
element.sendKeys(Keys.DELETE);