create field value logic moved to directive