Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Answered

toggle controller shown different when the field is read only

Posted on by 10

Dynamics 365 version 9.1 - On Premise.

when the field on the form is read only it displayed as gray with white dot (Value = "Yes") - see picture.

If the field is editable when it is shown in "red" .

We want the field to be a read only field but still to be shown in red, when the value is = "Yes" .

We use toggle control (in 9.0 - we used the deprecated one - and it was shown in red also in read only mode)

I would appreciate any solution

Thanks, Oren. 

toggle-control.png

  • Nya Profile Picture
    Nya 29,056 on at
    RE: toggle controller shown different when the field is read only

    Hi Oren,

    You're welcome.

    If there is any further doubt, please do not hesitate to let me know.

  • oren breit Profile Picture
    oren breit 10 on at
    RE: toggle controller shown different when the field is read only

    Nya, thank you very much for your answer.

    Regards, Oren.

  • Verified answer
    Nya Profile Picture
    Nya 29,056 on at
    RE: toggle controller shown different when the field is read only

    Hi,

    The color is controlled by the following CSS style.

    pastedimage1630293506966v1.pngpastedimage1630293516029v2.png

    According to the link, it's a web resource in the environment but cannot be found in the web resource list.

    And it's the default CSS of the Flip - Switch control.

    pastedimage1630293657724v3.png

    It cannot be customized unfortunately.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans