Questions and discussion about using ProcessMaker: user interface, running cases & functionality
#828642
Hi all

I'm fairly new to ProcessMaker. I'm sure I'll consult this forum frequently and hopefully I can contribute as well.

On to my issue....

In addition to a dynaform field's validate and validation error message properties, I would like to also programmatically set a field to invalid and invoke the PM invalid-field formatting, based on various logic.

Using the following chunk of Javascript, I am able to set a field to invalid (and set the message); HOWEVER, it only invokes the browser's default invalid-field indicator/formatting:
Code: Select all
    var element = document.getElementById("form[dob]");
    element.setCustomValidity("Test error");
    element.reportValidity();

... shows:
browser_dflt_invalid.jpg
browser_dflt_invalid.jpg (11.86 KiB) Viewed 7776 times

How can I show the ProcessMaker default field formatting like below?
pm_format_invalid.jpg
pm_format_invalid.jpg (20.53 KiB) Viewed 7776 times

Thanks!

A 1xbet clone script is a pre-designed software so[…]

4rabet clone script is enabling entrepreneurs to e[…]

Parimatch clone script is enabling entrepreneurs t[…]

In the world of cryptocurrency, a wallet is an app[…]