Questions and discussion about using ProcessMaker 2: user interface, running cases and functionality
Forum rules: Please search to see if a question has already been asked before posting. Please don't ask the same question in multiple forums.
By rundyz
#785738
Sorry, I saw input document in your thread title ~ so no that would be on a dynaform,

is this because you want to upload multiple upload documents?

if you only want the one file upload I'd setup a dynaform for this Input document which you could remove the next/prev links.
or perhaps you could use a grid with your input document as a workaround?
User avatar
By amosbatto
#785739
SaraShan,
This one took me a while to figure out. Edit the file workflow/engine/xmlform/cases/cases_InputdocsListOptions.xml on you PM server with a plain text editor.
Change the lines from:
Code: Select all
<JS type="javascript">

</JS>
To:
Code: Select all
<JS type="javascript">
function fn() {
   //hide backward step link:
   document.getElementsByName("form[MNU_ADD]")[0].style.display='none';
   //hide forward step link:
   document.getElementsByName("form[MNU_ADD]")[1].style.display='none';
   //hide submit button:
   document.getElementById('form[BTN_SUBMIT]').style.display='none'; 
}
document.addEventListener('DOMContentLoaded', fn, false);
</JS>
User avatar
By amosbatto
#785740
To only hide for a certain Input Document:
Code: Select all
<JS type="javascript"><![CDATA[
function fn() {
  function getUrlVar(str) {
    var v = document.location.search.match(new RegExp('(?:[\?\&]'+str+'=)([^&]+)'));
    return v ? v[1] : null;
  }
  
  //set to the UID of a certain Input Document:
  if (getUrlVar('UID') == '2085993045758a66581a8b7007009938') {
    document.getElementsByName("form[MNU_ADD]")[0].style.display='none';
    document.getElementsByName("form[MNU_ADD]")[1].style.display='none';
  }
}
document.addEventListener('DOMContentLoaded', fn, false);
]]>
</JS>

To take Cenforce 120mg tablet, follow the guidelin[…]

ICO software script is a pre-made program for crea[…]

A crypto exchange script is a pre-designed softwar[…]

So I recently bought an addmotor Ebike which of co[…]