@button.buttonAndHandler(_('Order'))
def handleApply(self, action):
    data, errors = self.extractData()
if 'address1' in data and 'address2' in data:
    if len(data['address1']) < 2 and len(data['address2']) < 2:
        raise ActionExecutionError(Invalid(_(
            'Please provide a valid address')))
elif len(data['address1']) < 2 and len(data['address2']) > 10:
    raise WidgetActionExecutionError('address2', Invalid(
        'Please put the main part of the address in the first field'))
if errors:
    self.status = self.formErrorsMessage
Move invariant validation error message on a field in Plone