Hi there, I am new to Mendix and encountered an issue: When I try to set 'validation feedback' for a lot of Combobox in a microflow bind to the save button of a form, I have to do it one member at a time, since the block only let me select one variable\member at a time. I am thinking if there is a way to batch validating these combobox (member), with same/different validating rules and corresponding validating messages shown to user, in a concentrated place/block? Tried the thoughts with raising JAVA error that related to these members, but 1. where to put code at? 2. how to raise the correct error? Regards Zhentao
asked
Zhentao Yang
1 answers
0
In Mendix, you can’t show validation feedback for multiple comboboxes with a single action, because Set validation feedback can only target one attribute at a time, as you said. To make all validations run at the same time, you need to merge the validations in the same microflow: check each combobox one by one and set validation feedback for every invalid field. When this is done in a single validation microflow, all errors are shown to the user at once instead of stopping at the first one, and the whole validation logic stays in one clear place.