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 / Comparing Parent.Defau...
Power Apps
Unanswered

Comparing Parent.Default to dropdown value - can't compare Record, Text issue

(0) ShareShare
ReportReport
Posted on by 37

Hello, I am trying to set the value of a toggle in datacard so I can tell if user selected different item in dropdown. 

The toggle is in the datacard and I have entered the following in the Default property of the toggle control. 

If( Parent.Default <> ddlTaskMngt_Assignee.Selected.Email truefalse)
 
I am getting an error that I can't compare a Record with text. 
 
I then updated the code to the following: 
If( Parent.Default <> {Value: Text(ddlTaskMngt_Assignee.Selected.Email)}, true, false)
 
I am not getting an error that I can't compare a Record to a Record. 
 
How do I convert Parent.Default to text? I tried  Text(Parent.Default), which didn't work.
 
Thanks in advance! 
Categories:
I have the same question (0)
  • SpongYe Profile Picture
    5,909 Super User 2026 Season 1 on at

    Hi @SM_Trailhead 

     

     The default value of a data card is a record that contains the field name and the field value. The selected value of a dropdown is also a record that contains the display name and the email of the selected person. To compare them, you need to access the specific properties of the records that you want to compare. For example, if you want to compare the email addresses, you can use this formula:

     

    If( 
     Parent.Default.Email <> ddlTaskMngt_Assignee.Selected.Email, 
     true, 
     false
    )

     

    If you have any questions or feedback, please let me know. Have a great day! 😊


    -----------------------
    PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube]

    I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻

  • SM_Trailhead Profile Picture
    37 on at

    Hi SpongYe,

     

    Thanks so much for your response! I should have noted a couple of things:

    1. The dropdown value is based on people picker column

    2. I had tried as you suggested above and it did not work.

     

    As a work around - not an elegant one but it works - I do have the original values in a collection that I use mainly to get the parent record ID and used that collection to compare the values since I do ClearCollect if I make changes. 

     

    It is so odd behavior and that is the only way I could get it working for now. Thanks again!

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

#2
11manish Profile Picture

11manish 224

#3
Valantis Profile Picture

Valantis 181

Last 30 days Overall leaderboard