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

How to get Quick Create Form name using JS?

(0) ShareShare
ReportReport
Posted on by 70

I used the js below for getting name of the main forms fine but it doesn't seem to work on Quick Create Form.

  var formName = Xrm.Page.ui.formSelector.getCurrentItem().getLabel();
  alert(formName);
I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at

    Hi Dyname365,

    Yes, because Quick Create Form doesn't have formSelector. And I couldn't find any method to get name of the Quick Create Form by Client API(docs.microsoft.com/.../reference).

    As a workaround, you could pass the name of Quick Create Form as parameter to your function:

    pastedimage1636354551997v1.png

    And you can get it like this:

    function formOnLoad(executionContext,formName){
        console.log(formName);
    }
    

    Result:

    pastedimage1636354775641v2.png

  • Verified answer
    Bipin D365 Profile Picture
    28,985 Moderator on at

    Hi,

    Note

    The formContext.ui.formSelectoris not supported for quick create forms.

    docs.microsoft.com/.../formcontext-ui-formselector

    Please mark my answer verified if i were helpful

  • Dyname365 Profile Picture
    70 on at

    Could iFrame be of any use for my intend?

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 March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
11manish Profile Picture

11manish 176

#2
ManoVerse Profile Picture

ManoVerse 158 Super User 2026 Season 1

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 57 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans