cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
powerapps890
Post Prodigy
Post Prodigy

If statement in default datacard

Screenshot 2021-05-14 102932.jpg

I am having trouble with the syntax of a default datacard. The combobox and beyond part works. When I just put Submitted in as the default along with the rest it shows submitted and the combobox value in a gallery label. I only want it to say submitted if status is blank and right now is combining them. How can I get the combobox to override the Submitted value? The datacard15 overides the combobox just with the last if statement. So when the status is empty I want it to say submitted when it is changed with a combobox I want that to be overwritten and just show the combobox value then I want it to be overwritten again when there is a value in datacard15.

2 REPLIES 2
Liam_Chapman
Resolver II
Resolver II

Hi @powerapps890 ,

 

Could you use the Coalesce function?
So something like:
Coalesce(DataCardValue16.Text, "Submitted")

It says it is creating a circular reference. @Liam_Chapman Just the word Submitted works but it doesn't overwrite the combobox @Liam_Chapman 

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Top Solution Authors
Top Kudoed Authors
Users online (2,787)