Skip to main content
Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Answered

Get statuscode value in Portal Dynamics

(1) ShareShare
ReportReport
Posted on by 44

Hi,

I would like to get  the statuscode of an entity form to hide/show a field using Javascript.

I tried $(#fieldname).val() in a function but it is returning a blank.

How can I achieve that ?

Tell me if you need more details

  • Suggested answer
    James Reinhardt Profile Picture
    222 on at
    Get statuscode value in Portal Dynamics
    I know its a few years too late, but you need to use:
    $("#statuscode_EntityStatus").val(); 
     
     
  • Alex519 Profile Picture
    44 on at
    RE: Get statuscode value in Portal Dynamics

    Hi Leah,

    I added "reason status" (read only) on the CRM form but it is still not working for me. It is returning "" .

    Besides, I forgot to mention I added code in the webpage that contains entity form. 

    Regards,

    Alex

  • Alex519 Profile Picture
    44 on at
    RE: Get statuscode value in Portal Dynamics

    Hi Erhan,

    I checked your link and I used the same syntax to get status code, however it didn't work for and it is returning "".

    Regards,

  • Verified answer
    Community Member Profile Picture
    on at
    RE: Get statuscode value in Portal Dynamics

    Hi partner,

    Firstly, you need ensure statuscode(status reason) Is on the form.

    Then add following code to ‘Addition settings’ tab in entity form.

    pastedimage1601457965064v1.png

    Regards,

    Leah Ju

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

  • erhan.keskin Profile Picture
    2,253 on at

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

News and Announcements

Now Available: 2025 Release Wave 2

Quick Links

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 51 Most Valuable Professional

#2
Ramesh Kumar Profile Picture

Ramesh Kumar 42

#3
David Shaw_UK Profile Picture

David Shaw_UK 27

Featured topics

Product updates

Dynamics 365 release plans