Newer
Older
import("KeywordRegistry_basic");

Sebastian Pongratz
committed
import("system.neon");
import("system.result");
import("system.vars");
var key = vars.get("$field.ADDR_TYPE");

Sebastian Pongratz
committed
// 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())

Sebastian Pongratz
committed
{
result.string(neon.COMPONENTSTATE_INVISIBLE);
}