Questions and discussion about using ProcessMaker: user interface, running cases & functionality

Moderators: ArturoRobles, ArturoRobles

Dear All
I want to create a dynaform. But the dynaform should show different buttons depending on the days of a leave request. For example, if this is a 1-day leave request, it should show "approve" in the supervisor. However if this leave is 3 or more days, then it should show "Agree" in the "supervisor" and request then be sent to the manager and show "Approve" button. How can I do this? Should I write a trigger ?

You can use two way javascript or trigger
For example with trigger you can do like this:
Code: Select all
@@hidden_js = '';
if(@@remain == 1){
	@@hidden_js .= '
else if(@@remain == 2){
	@@hidden_js .= '
else if(@@remain == 3){
	@@hidden_js .= '
Now you must create a hidden field in your dynaform with "hidden_js" name and with the bellow javascript code:
Code: Select all
$("document").ready( function(){
	if($('#hidden_js').getValue() != '')
}); ... jMXodwH1iw
CRUD and Process

Liliana i want to hear your answer if i say "[…]

Enabling SQL Server in Windows

I’m excited to uncover this page. I need to […]

Hi, Please use query like this: SELECT Forneced.[…]

Casos estão carregando em branco

Boa tarde! Prezados, estou com problemas em algun[…]