Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
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).
So, for instance, this is the data for my Partner "Apple":
Partner: Apple
Subscribed Services:
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
1 Comment
Hugo
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