Share ideas, ask questions, and get feedback about developing for ProcessMaker

Moderator: amosbatto

Forum rules: Please post new questions under "Developing processes & programming" for ProcessMaker 2 or 3.
User avatar
By amosbatto
#824291
If you set the datasource property of the dropdown to "array variable", then in your trigger, you can eliminate options from the array variable which is used to populate the dropdown's list.
Code: Select all
@=myDropdownList = array(
   array('value1', 'label1'),
   array('value2', 'label2'),
   array('value3', 'label3'),
);
//eliminate second option:
unset(@=myDropdownList[1]);

See: https://wiki.processmaker.com/3.0/DynaF ... iable[code]

If you want the option to appear in the dropdown box, but it is disabled (ie, grayed out), you will need to use JavaScript like this:
Code: Select all
$("#selectColor").find("option[value='red']").prop("disabled", true);
where "selectColor" is the dropdown's ID and "red" is the value of one of its options.

Or you can use this code to disable the second option in the list:
Code: Select all
$("#selectColor").find("option").eq(1).prop("disabled", true);
If you want to remove options from the list, then see:
https://www.pmusers.com/index.php/Chang ... tions_list

Ok, Then, did you ensure that: 1. This requested p[…]

Hello, I'm using ProcessMaker 3.3.10-community, an[…]

SOAP-ERROR: Parsing WSDL

Thanks AJ and Amos, i don't know how to answer Am[…]

Dear Amos, Thank you, I will give it a try.