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 / Compare data types Tex...
Power Apps
Unanswered

Compare data types Text, Record

(0) ShareShare
ReportReport
Posted on by 13

I got the edit Form with Datacard as the edit selection type. I just want to check the value that the user changes and the default value by :

 

 

 

 

If (ConsentCollection.Selected.Value = 'Consentcollection_DataCard'.Default, 
 'Consentcollection_DataCard'.Default,
 ConsentCollection.Selected.Value)

 

 

 

 
But I got the error cannot compare Text and Record. Please help me fix that error, I am just a beginner in building Power Apps. Thank everyone. 
Categories:
  • AARON_C Profile Picture
    2,235 Most Valuable Professional on at

    Hi @DUNGDK 

     

    It looks like you are trying to compare the selected value of a combo box/drop down control to a datacard of a form (where the data card is a group of controls).

  • DUNGDK Profile Picture
    13 on at

    Yes, it is. But the Default Value in the Datacard is the Record, it cannot be compared to the Text from dropbox.Selected.Value. Do you have any solution for that?

  • AARON_C Profile Picture
    2,235 Most Valuable Professional on at

    @DUNGDK 

     

    Could you please show me an image to confirm what you are trying to compare.

  • DUNGDK Profile Picture
    13 on at

    Screen Shot 2024-01-19 at 11.45.49 AM.png

    I just want to capture the changes from users and put it as the input of Run function => Power Automate.  

  • AARON_C Profile Picture
    2,235 Most Valuable Professional on at

    @DUNGDK 

     

    Normally with records, you can use the 'full stop' and then type the column name within the record you want.

    If (ConsentCollection.Selected.Value = 'Consentcollection_DataCard'.Default.'Your column', 
     'Consentcollection_DataCard'.Default,
     ConsentCollection.Selected.Value)

     

    Please tick Accept as solution if the answer is useful.

    Thanks,

    @AARON_C 

  • DUNGDK Profile Picture
    13 on at

    ConsentCollection_DataCard is the Card in the Form with the control type "edit selection" and the Default value is ThisItem.'ConsentCollection'. After the Default, I cannot add "column name"?? 

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 234 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
timl Profile Picture

timl 122 Super User 2026 Season 2

Last 30 days Overall leaderboard