cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
pricey79
Helper V
Helper V

Greying out option

Hello

 

I was hoping someone could help.

 

I have a drop down box called Dropdown_Type and a date picker called sap_ied_datepicker.

I want the date picker to be greyed out depending on the choice of the dropdown. 

Is that possible please?

 

Thank you 

1 ACCEPTED SOLUTION

Accepted Solutions
eka24
Super User
Super User

Try:

On the Displaymode of the DatePicker put:

If(Dropdown_Type.Selected.Value="ABC", DisplayMode.Disabled, DisplayMode.Edit)

 

Change ABC to your text

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

 

View solution in original post

4 REPLIES 4
eka24
Super User
Super User

Try:

On the Displaymode of the DatePicker put:

If(Dropdown_Type.Selected.Value="ABC", DisplayMode.Disabled, DisplayMode.Edit)

 

Change ABC to your text

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

 

Thank you. Had to change. Value to .Result, but it works. 

Thanks again. 

Ok because it is Distinct. Right?

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

KrishnaV
Community Champion
Community Champion

Hi @pricey79,

 

This you can achieve by adding the below code block at DisplayMode property of the DatePicker:

if(dropdown_type.selected.value="requiredvalues",DisplayMode.Disabled,DisplayMode.Edit)

 

I hope this resolved your issue if you see any challenge let me know I am always happy to help.

 

Regards,

Krishna
If this post helps give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.

 



I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

Regards,
KrishnaV
Business Applications MVP, Microsoft Certified Trainer
Twitter | Linkedin | YouTube | GitHub
If this post helps you give a THUMS-UP and if it solved your issue consider Accept it as the solution to help the other members / new members of the community.

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.

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 (3,257)