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 / How to convert from tw...
Power Apps
Unanswered

How to convert from two option data to text field?

(0) ShareShare
ReportReport
Posted on by 38

I created a new field which uses two option for user to select "Yes" and "No". 

 

And I wished to have a set of question appear or hide according to that selection of "Yes" and "No" where if it's Yes the question will popped up and otherwise.

 

I created a formula below and I connected the dropdown to the new field I created.

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

 

The problem I getting was incompatible in data types. I tried disconnecting the dropdown items with the new field I created and I went to insert a code ["Yes","No"] in the Items section of the Dropdown1 then input the formula again on to the Visible section of the question I would like to pop up or not with the code below 
If(Dropdown1.Selected.Value="No",false,true)

And It worked. It only worked if I input the option values through coding instead of connecting the dropdown with the field I just created. May I know how can I convert the two option data type to text? 

Categories:
I have the same question (0)
  • Edwin-Abdalian Profile Picture
    641 on at

    What is your data source? is it Sharepoint? if it's SP then what is the Name and Type of the YesNo column that you created? is it a Yes/No type column? if yes, you need to pass a boolean in your formula in PowerApps, not a text

  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @ywliang96 ,

    Could you please share a bit more about your data source? Is it a CDS Entity?

    Is the New field you added a Two Options type column in your CDS Entity?

     

    If the New added field is a Two Options type column in your CDS Entity data source, I think there is something wrong with it. I have made a test on my side, please consider take a try with the following workaround:

    Set the Items property of the Dropdown box to following:

    Choices('NewFieldName (YourEntity)')

    Then modify your If formula as below:

    If(
    Dropdown1.Selected.Value = 'NewFieldName (YourEntity)'.No,
    false,
    true
    )

    Please consider take a try with above solution, then check if the issue is solved.

    Note: The 'NewFieldName' represents the Two Option type field in your CDS Entity.

     

    Best regards,

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