I've created a work flow as below. I am using subforms to view data from the previous activities/forms. The workflow is working perfectly fine in Approved/positive scenario.

In Rework/Reject scenario, when the process takes a second iteration to 'Design_Specs' activity

1. As a 'Designer' I am not able view the form submitted in 'Review_Specs' activity.

2. As a 'Designer', when I update the fields in 'Design_Specs' form it replaces the old values that i submitted in the first iteration. How to retain different versions of a form?

  • No labels

8 Comments

    1. Does the form attached to "Design_Specs" activity, contains the form of "Review_Specs" activity as subform?
    2. If Form A and Form B are using the same table name (specified when we're creating a new form), form fields of the same name (in Advanced Properties), would be referring to the same value. If your design prefers the value not to be overwritten, then you have to create another form field using a different name. 
    1. Thanks for the quick reply, Tiensoon.

      1. When I add, the Second time it goes to 'Review_Specs', the same field is editable again. This way the data submitted in 'Review_Specs' activity the first time is lost.

      2. 'Design_Specs' form has two fields (Text field and File upload field). There can be unlimited iterations of Rework. The requirement is to see data submitted in each interation of Design_specs. As the table and form field name will be the same, it gets replaced with new data everytime. Is there a way to dynamically add form fields as in http://vidasp.net/tinydemos/add-fields.html. If so, both my issues will be resolved.

      1. In this case, you have to try using the Custom HTML to dynamically add the text field and file upload field. Custom HTML supports HTML, JavaScript (includes jQuery) and CSS syntax.

        For example, if you write in Custom HTML:

        <input name="filename" />

        A text field will be rendered in the form, with "filename" as the field name. At the same time, Hibernate will also create a new column (in this case, "filename") in the form data table.

        1. Alright... I am trying that now. Just wondering if the file upload happen when the field is created via Custom HTML.

        2. I've added Custom HTML in a form:

           <input name="Description" type="text"/>
          <input name="File" type="file">

          In the next activity's subform, I am able to see data submitted in text field, but file upload field is empty.

          Does something needs to be done get the file uploaded? Sorry, if I'm asking a naive question.

        3. Could you please help me with this.

          I've added Custom HTML in a form:

          <input name="Description" type="text"/>
           <input name="File" type="file">

          In the next activity's subform, I am able to see data submitted in text field, but file upload field is empty.

          1. Hi infiniti,

            Just checked with my own copy of Joget, the file upload field created using Custom HTML does NOT get uploaded when form is submitted.

            Unfortunately, we will need to stick to the conventional file upload element available in the form builder or handle the data by our own by using external form if we intend to dynamically creating new file upload field.

            We will take note of this short coming. Thanks.

            1. Thank you for the response Hugo.

              Please let me know in case a temporary code fix possible for this. Or otherwise if you could direct me to which files to look at, just in case with my little java knowledge if I'm able to find a solution, it would be of great.