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 532 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.
Call Help Center

pinterest help , contact pinterest , pinterest ph[…]

thank you for your Interest but I found problem […]

Hi, Some times the executeQuery function is not […]

Link Logo

Nice topic. Its very useful about link logo desi[…]