Hi I am trying to clear a multi line field based on the changes based to another drop down field(nfeed).
Below is my script and it is not clearing the field value.
def CRDB = getFieldByName("Change Review Board Decision")
def CRBC = getFieldByName("CRB Comment")
def TSRfield = getFieldById(getFieldChanged())
CRDB.setFormValue(null)
CRBC.setFormValue(null)
CRDB field (select list) is being set to null, but CRBC ( multi line field) is not clearing the value.
When I check the logs, I can see that multi line field value is being set to null, but on the UI field value is not being cleared and it is showing the old value
Can someone help on what is wrong with the script?
Hi,
I tested in my local instance, work well.
Settings in beh:
def f= getFieldById(getFieldChanged())
def tt = getFieldByName("testtext")
if (f.value.equals("test")){
tt.setFormValue(f.value)
}else{
tt.setFormValue("") // also work for tt.setFormValue(null)
}
B.R.
In the log, value is being set to null/empty, but on UI it is displaying the old value. Any clue on why this is happening?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.