python-dialog-example icon indicating copy to clipboard operation
python-dialog-example copied to clipboard

populate value in element based on another element selected value.

Open srgnrajan opened this issue 6 years ago • 1 comments

Description:

I am using dialog.open method, in this there are two elements with select option, I have selected value from drop down menu in the first element, and from second element I need to select the options based on first element selected values, which is not getting in the "dialog_suggestion" payload.

Is it possible to send the selected value from the first element, before select the value from second element drop down?

slackclient version: 1.3.0 node version: v10.15.0 OS version(s): CentOS Linux release 7.5.1804 (Core)

Steps to reproduce:

  1. Use dialog.open method with two elements, select the value from drop down.
  2. Try to select the value from second drop down based on the first drop down value.

Expected result:

I should be able to generated dynamic values based on the first element selected values.

Actual result:

I am not able to get the value to decide which is selected from the first element from the dialog_suggestion payload.

srgnrajan avatar Jan 31 '19 13:01 srgnrajan

@nsinnakkavadi it's not possible with the current dialog functionality. The best way to do it currently is to either use message attachments in an ephemeral message, or use a message menu to make the first selection, then present a button to open the dialog.

Roach avatar Jan 31 '19 17:01 Roach