action button is disabled when one of its action parameters is empty

0
Hi. I have a cleanup microflow on the popup Cancel button. It has 2 object parameters. The popup also has 2 parameters. When one of them is empty the Cancel button is disabled. How to force enable it?
asked
2 answers
1

Hi there,

Mendix currently doesn't let you pass empty parameters into microflows from pages.

 

A workaround can be done by having two separate cancel buttons, which you can hide/show if the objects are empty:

image.png

From this new cancel button, trigger a microflow which then calls the original microfow you wanted to use. This allows you to pass an empty parameter without disabling the button:

image.png

 

Hope this helps,

Liam

answered
1

This works if you make the parameter optional in the microflow, and add a default value to it (e.g. "empty").

Leave the parameter argument on the page (none). So, don't even type "empty", leave it completely blank.

This should enable the button without having to pass an argument to the microflow.

answered