I have a textfield, whose value is being provided by a local variable called loc

I have a textfield, whose value is being provided by a local variable called local!state. And local!state is sometimes null which leads to crashing. So to prevent that I put the following for the textfield:
if(COMMON_IsNullOrEmpty(local!state),{}, { a!textField(label:"State", value: local!state, saveInto:local!state)})

but the textField seems to not like null values even after providing an if check statement. Can anybody help?...

OriginalPostID-104189

OriginalPostID-104189

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data