web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

SetDisabled doesnt work for one of the date time fields in model driven UI .. however it works fine in classic UI

(0) ShareShare
ReportReport
Posted on by 356

I have two date time fields and they are made read-only based on certain conditions. this is achieved through business rules and JavaScript. One of the date time field is not editable (not able to change time part of the date) whereas the other works fine. On troubleshooting with developer tools, it appears that the disabled="true" property is set on the field that has issue and this tag is not available for the other date time field. When disabling the field on load of the form creates this issue. if the date time is not locked on load of the form, then it works fine.

I have the same question (0)
  • Suggested answer
    Henry J. Profile Picture
    5,237 on at
    RE: SetDisabled doesnt work for one of the date time fields in model driven UI .. however it works fine in classic UI

    Hello Devi,

    How do you make the date part of the field editable while the time isn’t?

    If you’re using supported methods and believe it’s a bug I advise that you open a Support Request here: https://admin.powerplatform.microsoft.com/support

    Henry

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
#ManoVerse Profile Picture

#ManoVerse 101

#2
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 66 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans