Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.

Moderator: ArturoRobles

Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
By maabik
#827514
Hello,

Actually, i am using ProcessMaker version “3.3.17 – Enterprise Edition”.

I am using the suggest control to select employees from table "users", and I have a specific requirement where I need to force the selection on this suggestion control.

The option of “Force Selection” is available only on version 3.4 as mentioned on the wiki (https://wiki.processmaker.com/3.2/Suggest_Control#Force_Selection).

Can you please tell me how to implement this functionality on the Dynaform using JAVASCRIPT?

Thank you for help.
Kind Regads.
#827877
Hello!
You can use the following javascript code:
Code: Select all
$("#submit").find("button").click(function(){
	var name = $("#name").getValue() //$("#id-suggest")
	if (name == "") {
    	alert("Name must be filled out");
        return false; //stop submit
	}else{
      	return true; //continue submit
	}
});
Best regards, Ricardo

Any ideas in this regard? Thanks

Can anyone help me please??????

rabbidwombat, I have created a better code examp[…]

Processmaker 3.6.1 OpenSource?

Generally, they share the latest release source co[…]