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

Moderators: ArturoRobles, 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

The 500 Internal Server Error is the general catch[…]

Really very nice blog information for this one and[…]

This is a long, lengthy and cumbersome process. T[…]

Great read for when on the road. The book provides[…]