Skip to content
Snippets Groups Projects
stateProcess.js 602 B
import("system.neon");
import("system.vars");
import("system.result");
import("WsValidation_lib");

// 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.operatingstate") == neon.OPERATINGSTATE_VIEW)
    result.string(neon.COMPONENTSTATE_INVISIBLE);
else
    result.string(WsValidationFieldUtils.wsFieldStateProcess(WsValidationType.get().TYPE_STREET_NOMINATIM));