Share ideas, ask questions, and get feedback about developing for ProcessMaker
Forum rules: Please post new questions under "Developing processes & programming" for ProcessMaker 2 or 3.
By azalea45
#784070
Dear All,

Can somebody please check my syntax.

I have 2 dropdowns (They just list years EG 2002, 2003). The first dropdown is when the person started and the second is completion. All I want is pop up a message that completion cannot be earlier than start and then put a red border and let the user re-select
Code: Select all
getField("yrComp").onchange = function(){
  
  if ((getField("yrComp").value < getField("yrReg").value) == true) {
    msgBox(" Completion cannot be earlier than Start", "alert", yrComp)
       getField("yrComp").style.borderColor="RED";
      }
}
The evaluation does not seem to work. Please help.
I am sure its something simple.

Thanks
Aza
User avatar
By ronrich
#784071
Hello Azalea45,

Please try the following:
Code: Select all
getField("yrComp").onchange = function(){
  
  if ((getField("yrComp").value < getField("yrReg").value)) {
    alert(" Completion cannot be earlier than Start");
       getField("yrComp").style.borderColor="#ff0000";
      }
}
Good luck

Regards
By azalea45
#784120
Hi All Again.

I have a new syntax problem.
I have a Check Group that must be hidden when the form opens. Then depending on the users response it must show the check group. I thought that the Condition Editor would be able to do this, but it doesn't seem to work.
This is the code that I am using
Code: Select all
hideRowById("ReturnResponse");

function ShowHideField(){
   
  if (getField('Status][1').checked==true){
    hideRowById("ReturnResponse"); //hide
     } else {   
    showRowById("ReturnResponse"); // show        
  }
}
 

ShowHideField(); // onload dyanform
getField('Status][1').onchange=ShowHideField; 
getField('Status][2').onchange=ShowHideField;
Thanks
Aza

Apart from the specifics offered here, I would als[…]

In recent years, online gambling games have provid[…]

If you want to import OST files into Outlook then […]

Site officiel:- www.fitprodiet.com/cordyceps-avis[…]