cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Drop down box

 

Hi.

How to do If Dropdown1.Selected.Value = 2 hour,  then play audio 3?

Thx

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

Hi @Anonymous,

Could you please share a bit more about your scenario?

Do you want to play the Audio (Audio1, Audio2, Audio3, ...) listed within your app based on the selected value within the Dropdown box?

I have made a test on my side, please take a try with the following workaround:1.JPG

 

2.JPG

Set the Items property of the Dropdown control (Dropdown1) to following:

["1 hour","2 hour","3 hour"]

Set the OnChange property of the Dropdown1 to following:

Reset(Audio1);Reset(Audio2);Reset(Audio3)

Set the AutoStart property of the Audio1 control to following:

If(Dropdown1.Selected.Value="1 hour", true,false)

Set the AutoStart property of the Audio2 control to following:

If(Dropdown1.Selected.Value="3 hour", true,false)

Set the AutoStart property of the Audio3 control to following:

If(Dropdown1.Selected.Value="2 hour", true,false)

The GIF screenshot as below:Test1.gif

 

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-xida-msft
Community Support
Community Support

Hi @Anonymous,

Could you please share a bit more about your scenario?

Do you want to play the Audio (Audio1, Audio2, Audio3, ...) listed within your app based on the selected value within the Dropdown box?

I have made a test on my side, please take a try with the following workaround:1.JPG

 

2.JPG

Set the Items property of the Dropdown control (Dropdown1) to following:

["1 hour","2 hour","3 hour"]

Set the OnChange property of the Dropdown1 to following:

Reset(Audio1);Reset(Audio2);Reset(Audio3)

Set the AutoStart property of the Audio1 control to following:

If(Dropdown1.Selected.Value="1 hour", true,false)

Set the AutoStart property of the Audio2 control to following:

If(Dropdown1.Selected.Value="3 hour", true,false)

Set the AutoStart property of the Audio3 control to following:

If(Dropdown1.Selected.Value="2 hour", true,false)

The GIF screenshot as below:Test1.gif

 

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

That's the solution. Thank you so much!

 

I have a further question base on that.

 

The big concept :

Click "3 hour" from DropDown-list > Start Timer delay > Trigger Audio1 when Timer is done.

 

I can not do it in detail. Could you help me? 

 

Thanks & Regard,

ET5

 

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (2,178)