Values of 3 fields (on back-end) don't update when the dependent field changes via FLOW DESIGNER
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi everyone,
I need help with a problem I'm facing while creating a new catalog form. There are 3 back-end fields that need to be populated after the approver selects the correct application or approves the RITM ticket.
Screenshot for reference:
The values of Parent Service, Service Offering, and Assignment Group depend on the selection from the "Please select the application" field.
On the back-end, the "Please select the application" field is editable so that the approver can change the values if the original application selection is incorrect.
The fields Parent Service, Service Offering, and Assignment Group should only populate after the approver approves the RITM ticket.
The issue is that the values of these fields remain unchanged even after the approver updates the "Please select the application" field. Despite the approver changing the application, the values still reflect the initial selection made by the requester. Again, these 3 fields only gets populated AFTER the approver approves the RITM. I’m using Flow Designer for this catalog form.
If the approver updates the value of the "Please select the application" field from CMS App FLX to JBoss/WildFly, the values of Parent Service, Service Offering, and Assignment Group must be updated after the approver approves the RITM ticket.
(Refer to the table below)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
You can do this with an onChange Catalog Client Script that applies to the Catalog Item, when the application variable changes. In the simplest form, use g_form.setValue('assignment_group', '123..') to set each field value, where the number is the sys_id of the record value. If you want to make it more dynamic you can use GlideAjax to call a Script Include to lookup the 3 values from the application table. There are plenty of examples of each of these scripts everywhere. Give it a shot and post your scripts using the insert code icon </> if you get stuck.
