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

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
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (34,774)