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 / DefaultValue Property ...
Power Apps
Unanswered

DefaultValue Property - Records are Submitted with the Default Value from another DataCard instead of Current Selected Value // Dataverse

(0) ShareShare
ReportReport
Posted on by 9

Hello Community, 

I need your assistance, 

 

I have created an app that submitss requests through a Form. This form has multiples datacards , and one of these datacards is completed automatically based on the selection of another datacard. 

1- Requester Name ( value selected on this field, defines the values of below datacard )

2- Requester Email ( completed with the value when 'Requester Name' = DataCardValue42.Selected.'Requester Name' ) This is at DefaultValue property

 

BcooS_1-1670442834809.png

 

This works. 

 

But, when I submit the request to dataverse table, the record of 'Requester Email' shows the selected value of 'Requester Name' instead of the value at 'Requester Email' field ( the email address contact). 

 

BcooS_2-1670442992676.png

 


I think this is resolved at Updates property , but i cant find the workaround. 

BcooS_3-1670443147031.png

*datacardvalue65 is the req email field

datacardvalue42 is the req name

Categories:
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @BcooS 

    If it is automatic, handle it in the Update property of the card and ignore the control inside:  In your example, use

    Lookup(yourtable, 'Requester Name'=DataCardValue42.Selected.'Requester Name').'Requester email' .  You could 

    also try DataCardValue42.Selected.'Requester Email'

    FYI, the only important property of a card is the Update property, 

     

  • BcooS Profile Picture
    9 on at

    Thanks for the reply @Drrickryp , but unfortunately, didnt work. Tried both 

    It says Incompatible error, you cant compare Record with Text.  

    Another importart detail i didnt mention is that i also want to give the user, the choice of typing a new email address that isnt in the dataverse and will submitted as a record. 
    So, the Update property cannot be only when the condition is met for DataCardValue42.Selected.'Requester Email'

    The User selects the Requester Name combobox, and the Requester Email combobox is completed with the email stored in dataverse for that Requester Name ( this is working fine with defaultselecteditems property i use). 
    But if the email address changed, the user type the new email and the form submits the record with the new email address to the Table 

    Update property of Requester Email field, should create the record in the table with the value shown in this field ( this is not working) 

  • Constrictor64 Profile Picture
    50 on at

    Is requester email just stored as plain text? If so you should be able to add the following to requestor email card.

    Coalesce(DataCardValue65.Selected.Name, DataCardValue65.SearchText)

     

    This should allow the saving of the default value, another email from the dropdown or allow the user to override the email address b typing one in the search box.

  • BcooS Profile Picture
    9 on at

    Didnt work 😓

     

    'Requester Name' and 'Requester Email' in the table Pending, are LookUp Columns related to the table Requester.  

    These columns in the table Requester are Text Columns ,  in which 'Requester Email Address' has email format.  


    This is the DefaultSelectedItems value i put and worked: Filter(Choices([@Pending].cr11f_RequesterEmail); 'Requester Name' = DataCardValue42.Selected.'Requester Name')

     

    But Update property as being DataCardValue65.Selected , when form is submitted, its stored requester name record, in the 'Requester Email' column. 

    Items for Email datacard is Choices([@Pending].'Requester Email')

     

    *datacardvalue65 is the req email field

    datacardvalue42 is the req name

  • Constrictor64 Profile Picture
    50 on at

    If requestor email is an additional field from the lookup column then there is no way to change it without first creating a new requestor record. This seams a bit convoluted. A lookup field an its additional columns are just that. They lookup the data they are linked to and display that, its not an overridable field. 

     

    The only thing I can think of if you want to maintain the same data structure which i'm not sure why you would, would be to add a check on the save form button which checks of a manual email address has been added and create a new requestor record with that email, duplicating the other fields from the original requestor and then changing the update property of the requestor field to allow for the new record to be selected if the variable holding it isn't blank.

     

    A potentially better way would be to add a text column to the order table that can hold an email address in it. If this field is blank refer to the requester email lookup, if not use the value of this field and then you could add some tom foolery to the update property of this text field to point to search field of the email lookup.

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 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 139

Last 30 days Overall leaderboard