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

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

Associated Leads subgrid error on new Contact: "value or valueof must be specified"

(0) ShareShare
ReportReport
Posted on by

Hi Community,

 

I’m facing an issue in a model-driven app when working with the Associated Leads subgrid on the Contact form.

When I create a new Contact record, the Associated Leads subgrid throws this error:

  • The error appears only the first time on new record creation.

  • Once the Contact is saved, the subgrid loads fine.

  • Interestingly, if I zoom-in in the browser, the error temporarily disappears.

 

 

Categories:
I have the same question (0)
  • Suggested answer
    Daniyal Khaleel Profile Picture
    348 on at
    Associated Leads subgrid error on new Contact: "value or valueof must be specified"
    Hide the subgrid until the record is saved
    function hideSubgridOnCreate(executionContext) {
        var formContext = executionContext.getFormContext();
        if (formContext.ui.getFormType() === 1) { // Create form
            formContext.ui.tabs.get("SUMMARY_TAB").sections.get("leads_subgrid_section").setVisible(false);
        }
    }
    
    Use a small JavaScript on form load

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daniyal Khaleel Profile Picture

Daniyal Khaleel 130

#2
DAnny3211 Profile Picture

DAnny3211 97

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 66 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans