Adding an HTML code / OpenLink item in a String that is adding in Microflow

0
Hi All,We have a requirement, to have a clickable link in a message to show an another page in the same app.Unfortuantely that message is being set in a microflow. How to make change to the Create String/Change String activity in a microflow to make some part of the text as a clikcable link.We are using 9.24.29 version.RegardsAjay
asked
2 answers
1

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.


answered
0

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.

Working / supported ways to show a clickable link

1) Render an HTML link in a text widget

In your microflow, build an HTML string:


'Click <a href="/p/TargetPage">here</a> to go to the page.'

Then in your page:

  • Use a Text widget
  • Set Render mode = HTML

This will make the link clickable and navigate inside your app.

NOTE: This works in Web apps only (not mobile native).

2) Use a Deep Link or Page URL and show it in UI

Mendix supports Page URLs in Studio Pro (9.20+):

  • Create a page
  • Configure its URL in properties (/p/YourPage)
  • Build the full link in the microflow string
  • Render it in the UI with HTML

Users can click the link and navigate directly to the page.

3) Use a widget that supports clickable links

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.

What will NOT work

  • You cannot open a link directly from a microflow message dialog (message box).
  • Microflows cannot create true clickable UI controls by themselves — the click behavior must be handled in the page UI.

The microflow can generate the URL text, but the page must interpret it as HTML or an actionable link.

answered