Form support for conditional display, actions

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2015 11:21 AM
Following this question from last year – https://forums.activiti.org/content/read-only-form
Using the Kickstart-generated forms, how do we support dynamic updates between fields?
When a property is set to a given value, can we:
set other property values on screen?
disable other values (I know we can hide them)
Two ideas I can think of:
- Metadata fields to orchestrate this (requiring updates to Kickstart)
- Injecting JavaScript in the form (probably even trickier in a SPA)
Using the Kickstart-generated forms, how do we support dynamic updates between fields?
When a property is set to a given value, can we:
set other property values on screen?
disable other values (I know we can hide them)
Two ideas I can think of:
- Metadata fields to orchestrate this (requiring updates to Kickstart)
- Injecting JavaScript in the form (probably even trickier in a SPA)
Labels:
- Labels:
-
Archive
6 REPLIES 6
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2015 07:43 AM
(moved to Enterprise forum)
Changing other form fields is currently only possible through customizing the javascript extensions. There, you can react on the formFieldValueChanged callback and change other fields.
Changing other form fields is currently only possible through customizing the javascript extensions. There, you can react on the formFieldValueChanged callback and change other fields.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2015 01:14 PM
Thanks – which Javascript extensions? Where would this be done? Would this code apply to only the desired form?
Is this something on the radar to be included in the form structure, to be modifiable within the Kickstart editor?
Is this something on the radar to be included in the form structure, to be modifiable within the Kickstart editor?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2015 05:05 PM
Found it – these are handled universally in workflow/extensions/render-form-extensions.js – loaded for every form.
So we'd need some hefty conditional logic to check we're in the specific form. What are the form/field object definitions?
So we'd need some hefty conditional logic to check we're in the specific form. What are the form/field object definitions?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2015 10:31 AM
My thinking on this – I expect the intermediate step is to represent the field interactions in a JSON file, and have render-form-extensions.js read & process that. Ultimately, the Kickstart Editor could maintain the UI to manage that.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2015 03:08 AM
Hi,
In the upcoming 1.4 release of the Activiti BPM Suite we support adding custom javascript event handlers on a form level in the Kickstart editor.
Best regards,
In the upcoming 1.4 release of the Activiti BPM Suite we support adding custom javascript event handlers on a form level in the Kickstart editor.
Best regards,

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2015 07:20 AM
Thanks - we will probably discuss more of the details with you.
