cancel
Showing results for 
Search instead for 
Did you mean: 

Help with Modal UI Logic and Selections

jarh15
Deputy Chef II
Deputy Chef II

Hi all,

I'm trying to build a user experience with modals where a user makes selections in two steps. I need help figuring out the best way to structure this interaction using Workato. Here's what I'm trying to achieve:

 

Step 1: First Modal – Choose Outcomes 

The first modal should present 6 outcome options. The user can select up to 3 of them. It should look like this:

Screenshot 2025-05-21 at 2.32.49 PM.png

Example selection: User picks Outcome 1, Outcome 4, and Outcome 5.

Step 2: Second Modal 

After the first modal, a second modal should open. This one displays the selected outcomes from step 1, and for each of them, a list of associated use cases (max 3 selectable per outcome).

So if the user selected Outcome 1, Outcome 4, Outcome 5

The second modal should look like this image:

Screenshot 2025-05-21 at 2.28.40 PM.png

 

1 ACCEPTED SOLUTION

If the modal is popping up as blank, please check the payload generated by the Python script.

The view_submission recipe does not need to be called from anywhere. This recipe will be the sole receiver of any custom view submissions. It will automatically get triggered independently in a separate recipe when you submit the modal in the original recipe. You just have to handle this triggered recipe separately, unlike the default modal where you get the response in the same recipe.

View solution in original post

14 REPLIES 14

Hi @jarh15 , they can just type "all" and all use case will come in drop down in second modal.  You can also go for checkbox and static type of list that comes without typing anything. In that case, you need to write a python script.
In the dynamic menu recipe, use collection sql and put a condition like this
Screen Shot 2025-05-22 at 21.54.32 PM.png

Thank you! Do you mind sharing the python solution if you have it?

Have a look at this reicpe.

https://app.workato.com/recipes/58548439?st=2ad38a78527481fb87a4ebd780b56f54c08390c8ad1aa7063d2bb197...

used a lookup table for outcome and use case relationship.Screen Shot 2025-05-22 at 22.04.38 PM.png

 


Please note: You will receive your modal and be able to submit the use case by selecting it. However, to capture the submitted values, you will need to create a separate recipe with a view_submission trigger.


Screen Shot 2025-05-22 at 22.06.53 PM.png

This is absolutely amazing! Thank you so much, this is exactly what I need. I'm just having trouble configuring the custom action in Slack. How does it need to be configured? It is asked for a method of the request. Also, for the separate recipe, how does that need to be configured other than the view submission event? Apologies for the ignorance here. Screenshot 2025-05-22 at 10.24.53 AM.pngScreenshot 2025-05-22 at 10.24.20 AM.png

You can configure your custom action as shown in the screenshot.
Screen Shot 2025-05-22 at 23.11.03 PM.pngScreen Shot 2025-05-22 at 23.10.53 PM.png
For the view_submission trigger, you will get your selected response in the trigger itself. You will need to use functions to extract the selected use cases and execute the next actions.
Screen Shot 2025-05-22 at 23.14.03 PM.png