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 :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

JavaScript error onload in Account form

(0) ShareShare
ReportReport
Posted on by 60

Hi,

Our contractor wrote a javascript function to format the phone number field in the Account form. I tried to reuse the same function in another Account form, which I thought worked fine.

But, now I am randomly getting Script error on some accounts, which doesn't happen every time - See screenshot below.

 7206.PNG

I am not sure what the issue and I am new to JavaScript as well.

Any help is much appreciated.

Thanks,

Praveen.

I have the same question (0)
  • Abdul Wahab Profile Picture
    12,119 Moderator on at

    Hi Praveen_e04,

    Please share the code & column on which you need formatting.

    Thanks

    Regards,

    Abdul Wahab

    CRM Team Lead

  • Suggested answer
    Inogic Profile Picture
    703 on at
    Hi Praveen,
    The value which is being assigned to the Phone number field should be valid or have value in the phone number. In your case, the Phone number field values for some of the accounts might be invalid or does not have value in the phone number and hence you are getting an error. Please make sure that the value that you are trying to format is of a type supported by the Phone number field.
    In case, you are still facing the issue then please share the code which you are using for formatting.
    Hope this helps!
  • Verified answer
    Praveen_e04 Profile Picture
    60 on at

    Hi Abdul and Roohi,

    My apologies for the late response. I found the issue. There was an existing script on the same field, which was supposed to be gone, but somehow got in there. I removed it and worked well.

    Thanks for your replies.

    - Praveen.

  • Suggested answer
    Abdul Wahab Profile Picture
    12,119 Moderator on at

    Hi Praveen_e04,

    Please mark this thread as completed.

    Thanks

    Abdul Wahab

  • Praveen_e04 Profile Picture
    60 on at

    Hi Abdul,

    How to close this thread as completed?

    Thanks,

    Praveen.

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 > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Martin Dráb Profile Picture

Martin Dráb 60 Most Valuable Professional

#2
#ManoVerse Profile Picture

#ManoVerse 51

#3
Satyam Prakash Profile Picture

Satyam Prakash 42

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans