Hi,

I need to create a form whose content (that is the list of fields) will be computed at run time.

Let's say, for instance, that I am managing, with a Joget-based web application, my Partners. For each Partner, I need to configure the list of Web Services he will be using as well as their parameters.

So when the user will register a new Partner in the system, he will have to manage a list of subscribed services, and for each subscribed service, he will have to manage the arguments that will be different from each service. let's say, for instance, that 3 services are defined (but potentially, I would like to also define each service through Joget forms, hence have full dynamicity).

Service 1: "Zip file"

  1. Arg 1: "Filename"
  2. Arg 2: "Compression factor"

Service 2: "Encrypt file"

  1. Arg 1: "Filename"
  2. Arg 2: "Algorythm"

Service 3: "Transcode":

  1. Arg 1: "Filename"
  2. Arg 2: "Source Encoding" 
  3. Arg 3: "Target Encoding"

So, for instance, this is the data for my Partner "Apple":

Partner: Apple

Subscribed Services:

  1. Zip File ("orders.txt", MaxCompression")
  2. Transcode ("orders.txt", "ASCII", "UTF-8")

How can I manage the definition of this kind of forms? Should I use sub-forms?

How can I manage the fact that I don't want to define three different forms (one form for each service)? Is it possible to let instruct Joget to dynamically add fields to a form by creating a specific kind of plugin?

Ideally, I would like to be able to create one Joget form for defining new service, and then be able to automatically use this new service in my Partner subscription form...

Many thanks for your help,

Best Regards

-- Jean-Baptiste

  • No labels

1 Comment

  1. Hi Jean,

    Thanks for trying out Joget. You will need to use a Grid or a Enhanced Grid Form Element (Form Grid) for that purpose. One can't dynamically add new fields into the current form except for the use of grid.

    Try to create forms with ERD concept in mind. You will need to have a Partner entity and a Service entity. Each partner would have one or more services. So, you will need to have 2 forms at minimum.

    Hope this helps. Thanks.

    Hugo