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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Unified Interface in Dynamics 365

(0) ShareShare
ReportReport
Posted on by 47

How can we write a javascript code to show or hide a field in Dynamics 365 Unified Interface?

I have the same question (0)
  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at

    Hi,

    The method to show hide the field remains same in classic & unified interface-

    carldesouza.com/.../

    The only thing is that XRM is deprecated so you need to use form context instead of Xrm.Page.

    docs.microsoft.com/.../clientapi-form-context

    =====================

    function hideName(executionContext)

    {

    var formContext = executionContext.getFormContext(); // get formContext

    // use formContext instead of Xrm.Page

    formContext.getAttribute("firstname").setVisible(false);

    }

    =====================

    Hope this helps.

  • Sunayana Profile Picture
    47 on at

    I am new to Dynamics 365. Could you please tell me how I can create a new entity in Dynamics 365's Unified Interface? And how to add web resources to it?

  • Verified answer
    gdas Profile Picture
    50,091 Moderator on at

    Hi Sunayana,

    In unified interface  click on settings in the top gear icon and then go to advanced settings. This will redirect you in the classic interface settings options .

    Now in the navigation pane of classic interface to go to settings  --> Customize the System /Solutions (If you have solutions) --> This will open Default Solutions / Solutions  where you can create new entity.

    Below video may help you more  -

    www.youtube.com/watch

    Follow below article to add JS in the forms and then follow JS code above shared by Ravi.

    neilparkhurst.com/.../

    www.linkedin.com/.../

  • Sunayana Profile Picture
    47 on at

    Thnakyou Goutham Das.

  • Sunayana Profile Picture
    47 on at

    Is there any way to perform this without shifting to classic interface?

  • gdas Profile Picture
    50,091 Moderator on at

    At the moment  you have to go with classic interface for customization.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 69 Most Valuable Professional

#2
ManoVerse Profile Picture

ManoVerse 60 Super User 2026 Season 1

#3
11manish Profile Picture

11manish 43

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans