Skip to content
Snippets Groups Projects
stateProcess.js 618 B
Newer Older
import("system.neon");
import("system.result");
import("system.vars");

var key = vars.get("$field.ADDR_TYPE");
// The field is only displayed in edit mode because there is the "formattedAddress" field which one shows the fromated address.
// If the field has a Value it would be displayed next to the formattedAddress field in view mode, so in this case the state is set to invisible.
if (vars.get("$sys.recordstate") == "" || vars.get("$sys.recordstate") == neon.OPERATINGSTATE_VIEW || key == $KeywordRegistry.addressType$post())
{
    result.string(neon.COMPONENTSTATE_INVISIBLE);
}