Skip to main content

Notifications

Announcements

No record found.

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);
  • Dyname365 Profile Picture
    70 on at
    RE: How to get Quick Create Form name using JS?

    Could iFrame be of any use for my intend?

  • Verified answer
    Bipin D365 Profile Picture
    28,981 Moderator on at
    RE: How to get Quick Create Form name using JS?

    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

  • Verified answer
    Community Member Profile Picture
    on at
    RE: How to get Quick Create Form name using JS?

    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

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 225 Super User 2025 Season 1

#2
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 97

#3
Vahid Ghafarpour Profile Picture

Vahid Ghafarpour 82 Super User 2025 Season 1

Overall leaderboard

Product updates

Dynamics 365 release plans