Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

How to check if reference field is empty in server script?

Akki1
Tera Contributor

How to check if reference field is empty in server script?

2 REPLIES 2

Sai Kumar B
Mega Sage

@Akki1 

Try the below

 

 

if(JSUtil.notNil(current.getValue('field_name')) //Non-empty

OR

if(current.getValue('field_name')) //Non-empty

 

 

Not applicable