Skip to Content
0
May 28, 2019 at 07:40 AM

UI Designer Scripting: Check if field is null

771 Views

I need to hide a field if it is null, so I've added a calculation rule to the 'Visible' attribute of the fields: However, neither of the below are working (First always returns false, the second one always returns true). I need to know how to check if a field is empty/null:

*****************************************************

dataField = $data.PRDLinkInternalID

if (dataField == null)

result = false

else

result = true

end

**************************************************

dataField = $data.PRDLinkInternalID

if (dataField == “ “)

result = false

else

result = true

end

***************************************************