cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Conditional outputs from a modal

jarh15
Deputy Chef II
Deputy Chef II
I have a modal where users can select multiple items. For only one of the items, selecting it triggers a second modal where the user must choose a subspecialty.
 
If the user selects that item, I want the final output to be a list of the user's selections in the first modal, but I want the subspecialty, to completely replacing the original item. For all other items that donโ€™t require a subspecialty, the original selections should appear in the output as-is.

Screenshot 2025-05-08 at 2.16.15โ€ฏPM.png
1 REPLY 1

1dheeraj2
Deputy Chef II
Deputy Chef II

Hi @jarh15 

Just to understand more:

  1. Regarding the subspecialty values:

    • Are these hardcoded, or
    • Are they dynamically fetched through a menu using an item ID?
  2. Understanding the Modal Relationship:

    • Is there a code-level relationship between the first and second modal values?
    • Or are they functioning independently?

Suggested Solutions:

  1. You can use the "View JSON" values in JSON parser to capture selected values from both modals

    • Python script approach (most efficient)
    • Alternative solution without Python (requires more tasks)
  2. If the modal values are hardcoded and independent:

    • Use variables after parsing JSON view data pill
    • Remove subspecialty entries using formulas

There are still several aspects we need to clarify:

  1. Output Requirements:

    • Do you need text values or backend values in the output?
    • Are your text and values identical?
  2. List of Values (LOV) Configuration:

    • What type of LOV are you using in both modals (static or dynamic)?
    • If static, we can leverage the parameter section

Please provide details about:

  • The architecture used to populate your modal LOVs
  • Your specific output requirements (text vs. value)

This information will help us suggest the most effective solution for your needs.

 

Screen Shot 2025-05-09 at 17.13.25 PM.png

Screen Shot 2025-05-09 at 16.58.29 PM.png