Home > Forum > User Voice > Prevent saving if RegEx validation fails?

Prevent saving if RegEx validation fails?
0

MVP

Hi,

if we are saving a workflow instance the form validation is ignored. This includes regular expression. In my opinion the regular expression should be checked and if they are not successful, saving should be prevented. Otherwise we will be able to save invalid data, which in turn can lead to issues, if the data is used in other workflows.

In our case the field can be used as the display name of choose fields and we wanted to prevent the use of the special characters ; and #.

The attached image has been taken from 2024.1.1.88.

Best regards,
Daniel

MVP
In reply to: Dawid Porowski

Hi Daniel,
I think I understand the issue, but just to be sure, can you please attach the screenshot you mentioned in your post?

Cheers
Dawid

Hi Dawid,

oh sorry. I attached it.

Yes, the regex is validate , a warning is displayed too but I can still save the workflow using the save menu button.
If I then open the workflow instance in edit mode the error is also displayed immediately.

Best regards,
Daniel