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

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
Super User III
Super User III

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
Super User III
Super User III

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

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.

Super User III
Super User III

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.

Proud to be a Super User!

Regards,
KrishnaV
Business Applications MVP
Twitter | Linkedin | YouTube | GitHub
If this post helps you give a 👍 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
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

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