Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Make Date Field Blank If Dropdown set to specific value

(0) ShareShare
ReportReport
Posted on by

Hi Experts,

 

I have a Status dropdown list named Dropdown-Status and a date field named Date-Closed

 

I have options in the status dropdown list called "Please select an option","Open","Closed"

 

The date field is not visible unless the status is set to Closed

 

When the dropdown is set to Open, I want the date field to be blank when it pulls through to my Sharepoint list, currently it's pulling through the date the powerapp is run. 

 

Can you help please? 

  • AJ_vizMan Profile Picture
    on at
    Re: Make Date Field Blank If Dropdown set to specific value

    Another way of achieving the solution is 
    In 'Required' property of Date control use -  If(StatusDataCardvalue.Selected.Result = "Closed",true,false) // Use StatusDataCardvalue as available in your app

     

    Now, on 'Update' Property of Date control use - If(StatusDataCardvalue.Selected.Result = "In Progress",Blank(),DataCardValue.SelectedDate) // DataCardValue is Datacard Name in Date control

     

     

  • Verified answer
    NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at
    Re: Make Date Field Blank If Dropdown set to specific value

    You can make changes in Default property of your date picker - 
    DefaultDate property => If(DropDownDataCardValue.Selected.Value = "Open", Blank(), Parent.Default)

     

  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at
    Re: Make Date Field Blank If Dropdown set to specific value

    Does it has a default date? That might be the problem.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard