web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / radio button selection...
Power Apps
Answered

radio button selection based on textbox

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a Radio button control with 4 options.

["Submitted","In Progress","Awaiting Reply","Completed"]

The radio buttons are independent of the form

 

I have a form with a textbox.

Card Title =  "Submitted"

DataCardValue13

 

What I need:

if the value in the Textbox is "Completed" then I need to make sure the Correct radio button is selected ?

and so forth for the other values.

Thanks

Dave

Categories:
I have the same question (0)
  • Verified answer
    mdevaney Profile Picture
    29,991 Moderator on at
    @Anonymous
    Could you please try using this code in the Default property of the radio buttons?

    DataCardValue13.Text

    If you don’t the user to have the ability to click the radio buttons you can change the DisplayMode property to this code

    DisplayMode.View

    —-
    Please Accept as Solution if this post answered your question so others may find it more quickly. If you found this post helpful consider giving it a Thumbs Up.
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at
    Just curious? I figured it would involve an IF statement?
  • mdevaney Profile Picture
    29,991 Moderator on at
    @Anonymous
    I understand your logic. My line of thinking is if the matching value is typed in the textbox it will also appear as the selected value in your radio buttons. Otherwise, if there in no matching value found the radio buttons will not have any selection made.

    —-
    Please Accept as Solution if this post answered your question so others may find it more quickly. If you found this post helpful consider giving it a Thumbs Up.
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

     

    mdevaney

    in live testing this did not work. 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I don't understand why for the onVisible property of my form:

    If(DataCardValue19.Text = "Submitted",Radio3.Selected.Value = "Submitted",
    DataCardValue19.Text = "In Progress",Radio3.Selected.Value = "In Progress",
    DataCardValue19.Text  = "Awaiting Reply",Radio3.Selected.Value = "Awaiting Reply",
    DataCardValue19.Text = "Completed",Radio3.Selected.Value = "Completed")

     

    The radio control does not recognize this code ?

     

    dave

  • mdevaney Profile Picture
    29,991 Moderator on at

    @Anonymous 
    Are you trying to make a radio button default selection match a textbox?  I would simply put this code in the Default property

    DataCardValue19.Text

     

    Maybe, you can clarify why you were trying OnVisible if this does not work.

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up." 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I have a form that is being opened from a deep link scenario.

     

    When the form opens I just need the radio control to be initially insync with the field/Datacard19 value.

    The Radio Control will be changed , I get an error  when trying to use..the Default property.

    radio3_circular.jpg

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard