hi,

How to get values in form into Bean Shell with request/respons.

i need to get form values  (lables and corresponding values) in Bean Shell. Is it possible?

plz reply me.

cheers

  • No labels

3 Comments

  1. To get the form value use, #form.formName.formFieldName#. See the example code below

    import java.util.Collection;
    import org.joget.workflow.model.*;
    import org.joget.workflow.model.service.*;

    WorkflowManager wm = (WorkflowManager) pluginManager.getBean("workflowManager");
    String firstname ="#form.initialIntakeForm.userFirstname#";        
    System.out.println("Creating a user "+firstname);

    1. Excuse me, help me I Can't show or get my variable or value by form I have this.

      -I have Joget Commit

      I'm trying this code

      import java.util.Collection;
      import org.joget.workflow.model.*;
      import org.joget.workflow.model.service.*;

      String a="#form.formulario.carrera#\n"+" #form.frm_ua_ingreso_done.carrera#\n"+
      " #form.formulario.carrera#\n"+" #performer.act_id.id#\n"+
      " #assignment.processId#\n"+" #variable.carne#\n"+
      " #variable.status_orden#\n"+" #user.admin.id#\n";
      System.out.println("Creating a user "+a);

      Thanks

      1. Share your app with me to help you.