Issue with clearing of multi line field using behaviors

Vineela Durbha December 17, 2019

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?

1 answer

0 votes
Andrew
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 17, 2019

Hi,

I tested in my local instance, work well.

Settings in beh:

B.PNG

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.

Vineela Durbha December 17, 2019

@Andrew 

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?

Suggest an answer

Log in or Sign up to answer