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 7813 times

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

Thanks!

In the rapidly evolving world of online sports be[…]

STEPN integrates social networking and games that […]

Cenforce 150 is a medication used to cope with a c[…]

What's SAP FICO?

Trustworthy and skill-building, each of these actu[…]