Questions and discussion about using ProcessMaker: user interface, running cases & functionality
#827166
Hi,
You can use like this code:
Code: Select all
var dyn_uid1 = document.forms[0].id;

function check_form(){
	if($('#my_field').getValue() == 0){
		alert('Enter true data')
		return false;
	}
    
	return true;
}

$("document").ready( function(){
	getFormById(dyn_uid1).setOnSubmit(function(){ return check_form(); });
});
https://pmlearning.info
Thanks
Last edited by programerboy on Wed Apr 07, 2021 1:15 am, edited 1 time in total.

Being the best in the started business is the obje[…]

Winzo is a popular and unique game on the mobile p[…]

Cannot create process using templets

Real details. The problem was solved by effect!

However, it is essential to use it responsibly and[…]