Skip to main content

Notifications

Announcements

No record found.

Service | Customer Service, Contact Center, Fie...
Answered

Get statuscode value in Portal Dynamics

Posted on by 40

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
    James Reinhardt 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
    Alex519 40 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
    Alex519 40 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
    Community Member Microsoft Employee 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
    erhan.keskin 2,247 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

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,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans