cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
CiaranCampbell
Frequent Visitor

Have no date displayed unless form is being edited or if field has a value

I have one form that i am using for different people to update a SP list in a canvas app, I have a few date fields and ideally i want the date picker to be blank if someone is viewing a field they should be editing and adding a date to, but if that date field already has a value, then it should just show that date, any help would be greatly appreciated, thanks

1 ACCEPTED SOLUTION

Accepted Solutions
NandiniBhagya20
Solution Sage
Solution Sage

Hi @CiaranCampbell ,
Woud you like to disable or make the date control in view mode if date has already been added by a user i.e. if date is not empty. You can achieve this by using below formula in DisplayMode property of DatePicker - 

If(!IsBlank(ThisItem.DateColumn), DisplayMode.View, If(FormName.Mode<>FormMode.View, DisplayMode.Edit, DisplayMode.View))


Did you like my post? Please give it a thumbs up! Did I resolve your issue? Please click Accept as Solution to close the topic and so other members of the community can find solutions more easily.

View solution in original post

2 REPLIES 2
NandiniBhagya20
Solution Sage
Solution Sage

Hi @CiaranCampbell ,
Woud you like to disable or make the date control in view mode if date has already been added by a user i.e. if date is not empty. You can achieve this by using below formula in DisplayMode property of DatePicker - 

If(!IsBlank(ThisItem.DateColumn), DisplayMode.View, If(FormName.Mode<>FormMode.View, DisplayMode.Edit, DisplayMode.View))


Did you like my post? Please give it a thumbs up! Did I resolve your issue? Please click Accept as Solution to close the topic and so other members of the community can find solutions more easily.

Drrickryp
Super User
Super User

Default property: Coalesce(Parent.Default, Blank()) 

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,463)