cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate V
Advocate V

Make an icon not clickable / not visible if date is not inputted

Hello everyone,

I have a question regarding the 'visible' of an icon/button and/or making it clickable.

In an edit form I have, the user can input a 'start date' and 'end date', which both come blank from the start, and also ticket a box marking it as 'completed'. What I want to do is to make that checkbox visible or, better if it is possible, to be seen but not able to be ticketed/used if the 'end date' has not been inputted by the user.

 

How can I go doing something like this? Any help would be appreciated

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: Make an icon not clickable / not visible if date is not inputted

To make the field invisible:  On your checkbox, set Visible to !IsBlank(<name of control with the end date in it>), for example, !IsBlank(Label4).  If Label4 has a value in it the checkbox will be displayed.  If Label4 does not, the checkbox will be hidden.  

 

To make the field visible but disabled:  On your checkbox set DisplayMode to (using Label4 again as the field):

If(IsBlank(Label4),DisplayMode.Disabled,DisplayMode.Edit)

LRVinNC

------------------
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

4 REPLIES 4
Highlighted
Super User
Super User

Re: Make an icon not clickable / not visible if date is not inputted

To make the field invisible:  On your checkbox, set Visible to !IsBlank(<name of control with the end date in it>), for example, !IsBlank(Label4).  If Label4 has a value in it the checkbox will be displayed.  If Label4 does not, the checkbox will be hidden.  

 

To make the field visible but disabled:  On your checkbox set DisplayMode to (using Label4 again as the field):

If(IsBlank(Label4),DisplayMode.Disabled,DisplayMode.Edit)

LRVinNC

------------------
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

Highlighted
Advocate V
Advocate V

Re: Make an icon not clickable / not visible if date is not inputted

This was exactly what I needed, thank you @LRVinNC 

Highlighted
Power Apps
Power Apps

Re: Make an icon not clickable / not visible if date is not inputted

Thanks @LRVinNC for not only providing one, but two ways of achieving the experiences. @FelipeCaru, can you let us know what you decide to go with and what other question you have related to this scenario?

Highlighted
Advocate V
Advocate V

Re: Make an icon not clickable / not visible if date is not inputted

@Mr-Dang-MSFT 

I used the method of disabling the checkbox, since that way the user knows it is there and will know it is missing the end date (it was, actually, a requirement from them)

If(IsBlank(DateValue4)=true, DisplayMode.Disabled, DisplayMode.Edit)

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (5,294)