Create a new entity called ValidationMessage and store the message parts there instead of building a single string in the microflow. For example, split the message into parts such as FirstTextPart = “The entered value”, LinkTextPart = “acceptable values”, and LastTextPart = “is not in the range”. The message does not have to be exactly three parts — it can be one or two as well — so you can control which parts are shown as text or link using boolean flags. Also add an association in ValidationMessage to the entity that stores the acceptable value range, since you will need this when the link is clicked.
On the page, display the ValidationMessage objects in a List View. Render each part conditionally: use a Text widget for normal text parts and a Link/Button widget for the link part. When the user clicks the link, open a single reusable popup and pass the ValidationMessage object as a parameter. Inside the popup, use the association on ValidationMessage to retrieve and display the acceptable values for that field and user.
This is a high-level approach, but it provides a clear solution path and should be flexible enough to implement your dynamic validation messages.
hi,
In Mendix you cannot make part of a string created in a microflow “clickable” by itself — microflows only produce plain text. What you display in a message (or string) must be rendered as HTML or navigation in the UI, not inside the microflow logic.
In your microflow, build an HTML string:
'Click <a href="/p/TargetPage">here</a> to go to the page.'
Then in your page:
This will make the link clickable and navigate inside your app.
NOTE: This works in Web apps only (not mobile native).
Mendix supports Page URLs in Studio Pro (9.20+):
/p/YourPage)Users can click the link and navigate directly to the page.
Widgets like Format String or marketplace widgets (e.g., “Open link in new tab”) let you bind a URL attribute and display it as a clickable link with HTML.
The microflow can generate the URL text, but the page must interpret it as HTML or an actionable link.