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.
#784067
My goal is in a Dynaform to make a drop down with "Yes" and "No" to make a text box appear when the user selects "Yes" and disappear if the user selects "No". The drop down id is userApproval and the text box id is userName. I am currently trying to do this by writing it in java script in the Dynaform, my code is below. Currently it cannot find the id userApproval and I do not know why. Any help would greatly appreciated.
Code: Select all
function showOrHideAddress() {
   if ($("#userApproval").getValue == "1") {
      $("#userName").show;      //show Address field
   }
   else {
      $("#userName").hide;  //hide Address field
   }
}
 
$("#userApproval")[0].onchange = showOrHideAddress; //execute when user selects an option
showOrHideAddress();   //execute when DynaForm loads
// $("#userName").hide()
#784142
Try this jQuery.
Code: Select all
function hideShowVerification() {
  if (document.getElementById('form[userApproval]').value == "userName"){
   document.getElementById('userName').style.display = 'block'; //show
 }
 else {
   document.getElementById('userName').style.display = 'none'; //hide
 } 
}

A 1xBet clone script is a customizable software so[…]

A Bustabit clone script is a pre-made software sol[…]

Are you looking for ways to pay someone to write m[…]

BC.Game Clone

BC.game clone is a replica of the original BC.game[…]