Skip to main content

Notifications

Community site session details

Community site session details

Session Id : En1vG348pGO0YfSLAi3q0e
Power Apps - Building Power Apps
Unanswered

getting the selected text/option/value from an html dropdown

Like (0) ShareShare
ReportReport
Posted on 4 Oct 2022 05:35:18 by 42

I have the below html dropdown in powerapps canvas. How can I get the selected option value please ?

 

 

"
<!DOCTYPE html>
<html>
 <head></head>
 <body>
 <center>
 <h1 style='color: green;'>Html Dropdown</h1>
 <div class='select'>
 <select style='position: relative;
 display: block;
 width: 15em;
 height: 2em;
 line-height: 3;
 overflow: hidden;
 border-radius: .25em;
 padding-bottom: 10px;' name='slct' id='slct'>
 <option style='-webkit-appearance: none;
 -moz-appearance: none;
 -ms-appearance: none; appearance: none;
 outline: 0;
 background: gray;
 background-image: none;
 width: 100%;
 height: 100%;
 color: white;
 cursor: pointer;
 border: 1px solid black;
 border-radius: 3px;'>Computer Science Subjects</option>
 <option style=' -webkit-appearance: none;
 -moz-appearance: none;
 -ms-appearance: none; appearance: none;
 outline: 0;
 background: gray;
 background-image: none;
 width: 100%;
 height: 100%;
 color: white;
 cursor: pointer;
 border: 1px solid black;
 border-radius: 3px;' value='1'>Operating System</option>
 <option style=' -webkit-appearance: none;
 -moz-appearance: none;
 -ms-appearance: none; appearance: none;
 outline: 0;
 background: gray;
 background-image: none;
 width: 100%;
 height: 100%;
 color: white;
 cursor: pointer;
 border: 1px solid black;
 border-radius: 3px;' value='2'>Computer Networks</option>
 <option style=' -webkit-appearance: none;
 -moz-appearance: none;
 -ms-appearance: none; appearance: none;
 outline: 0;
 background: gray;
 background-image: none;
 width: 100%;
 height: 100%;
 color: white;
 cursor: pointer;
 border: 1px solid black;
 border-radius: 3px;' value='3'>Data Structure</option>
 <option style=' appearance: none;
 outline: 0;
 background: gray;
 background-image: none;
 width: 100%;
 height: 100%;
 color: white;
 cursor: pointer;
 border: 1px solid black;
 border-radius: 3px;' value='4'>Algorithm</option>
 <option style=' -webkit-appearance: none;
 -moz-appearance: none;
 -ms-appearance: none; appearance: none;
 outline: 0;
 background: gray;
 background-image: none;
 width: 100%;
 height: 100%;
 color: white;
 cursor: pointer;
 border: 1px solid black;
 border-radius: 3px;' value='5'>C programming</option>
 <option style=' -webkit-appearance: none;
 -moz-appearance: none;
 -ms-appearance: none; appearance: none;
 outline: 0;
 background: gray;
 background-image: none;
 width: 100%;
 height: 100%;
 color: white;
 cursor: pointer;
 border: 1px solid black;
 border-radius: 3px;' value='6'>JAVA</option>
 </select>
 </div>
 </center>
 </body>
</html>"

 

 

thanks

  • v-bofeng-msft Profile Picture
    on 05 Oct 2022 at 06:33:45
    Re: getting the selected text/option/value from an html dropdown

    Hi @roncam82 ,

     

    I'm afraid that is not available. Please consider using canvas app's native dropdown control.

     

    vbofengmsft_0-1664951575159.png

     

    In addition, you can create a new idea through the below URL, then ask  your colleagues to raise up the votes.  

     

    Power Apps Ideas - Power Platform Community (microsoft.com) 

     

    The  product team has direct visibility of these ideas and they will implement it on the basis of the highest number of votes received. 

     

     

    Best Regards, 

    Bof

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,668 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard
Loading started