Validation message with more options - Mendix Forum

Validation message with more options

1

In Mendix we can use 'show validation message' out of the box in microflow, where we define on which attribute to show the validation. It would be helpful if it was a bit more customizable, for example we could set info/warning/error styling etc... 

In Mendix 10 and above there might be some solutions for that, but in 9 NP helpers / custom styling is needed. 

asked
1 answers

Exactly — in Mendix, the built-in “Show validation message” activity in microflows is simple and works well for standard attribute-level validation. But it’s quite limited:

  • You cannot choose the type of message (info, warning, error) — it always displays as an error style.

  • You cannot customize the styling beyond what the default theme allows.

  • It only works on entity attributes, so it’s not ideal for more general messages (like global messages or process info).

Workarounds in Mendix 9 and below:

  1. Nanoflow / Page-level messages

    • You can use Nanoflow messages (showMessage) and choose between info, warning, or error.

    • This works for general messages not tied to an attribute.

  2. Custom widget / helper

    • Create a custom widget that receives a list of messages with type/style.

    • Then, in your microflow, instead of show validation message, you call this widget and pass the messages.

  3. Using helper entities

    • Create an entity like MessageHelper with attributes: Text, Type (info/warning/error).

    • Microflow populates a list of these messages.

    • Display the list in a Data Grid or List View with custom styling based on the type.

Mendix 10+

  • Mendix 10 improved feedback handling:

    • You can use page feedback widgets to show messages with more styling control.

    • It allows global messages with different types (info, warning, error) more easily.

Created