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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

How to getValue from Related table's field

(0) ShareShare
ReportReport
Posted on by 709

Hello guys,

Need some help for some JavaScript for I only know just a little bit about this. So in my Model-driven form, I have added field from Related Data - Quick View, Something like this ->
pastedimage1636481634101v1.png

And then I created JavaScript to getValue from this field, by using code ->

    const formContext = executionContext.getFormContext();
 
    const formType = formContext.ui.getFormType();
 
    if (formType == 1) { // If Create
        return;
    }
    
    const isActive = formContext.getAttribute("jyp_active").getValue();

and put this script at OnLoad component of my form.

However I'm hit error like this :

pastedimage1636481867849v2.png

What is the right syntax to get value of that field ? Or is there some differences when the field is coming from a Quick View from related table ?

Btw, please advice whether my question is not clear so I can add more information and make it more clearer. Sorry, because I'm new to this, not sure what I should explain further.

Thanks

I have the same question (0)
  • Suggested answer
    Bipin D365 Profile Picture
    28,983 Moderator on at

    Hi,

    Please check below article on how to get field value from quick view form

    nishantrana.me/.../

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 70 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 33 Most Valuable Professional

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans