Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.

Moderator: amosbatto

Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
By sujittra
#823223
If assistant don't check in radio group, it's a hide subform of Assistant Manager and Subform of Manager is also.
Attachments
subform.png
subform.png (143.2 KiB) Viewed 344 times
By stevensi1018
#823237
Should be as simple as :
Code: Select all
$("#subformID").hide();
replace subformID by the ID of the subform in the properties. Based on your radio, you'll have to do something like this:
Code: Select all
$("#radioID").setOnchange(functionName);

function functionName()
{
   var radioValue = $("#radioID").val();
   if(radioValue == "X")
      $("#subformID").hide();
   else¸
     $("#subformID").show();
}
User avatar
By amosbatto
#826068
Sriluxshi wrote: Tue Aug 20, 2019 1:29 am how to delete a subform?
It is a bad idea to delete a subform, because ProcessMaker will expect to find the fields in the subform when the Dynaform is submitted.

Instead, you should set the value of the fields in the subform to "" (an empty string) and you should hide the subform like this:
$("#1234567890abcdef1234567890abcdef").hide();
Where "1234567890abcdef1234567890abcdef" is the ID of the subform.

Sending documents as base64 worked the last time I[…]

I don't see those problems using PM 3.3.10 Communi[…]

Tengo el mismo problema con el MultipleFile, inten[…]

Getting this error

_ERROR_ : The row '3149943815d31b85fdf39650326697[…]