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 CRM (Archived)

ADX Form custom Javascript code box

(0) ShareShare
ReportReport
Posted on by

Hello,

I am working with ADX and I have a particular form that needs lots of validations.  I am adding the code in the Custom Javascript box.  After trying to add more custom code for validations I got the message "You have exceeded the maximum number of 10000 characters in this field", have anyone experienced this?  if so, are there any workarounds?

Thanks

George

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Dmytro Rutkovskyi Profile Picture
    1,835 on at

    There are few options.

    I strongly reccomend to move you validation code to separate Javascript file (its better is it can be cashed by browser) - and  just include it with <sript> tag there.

    You can add the Javascript with Web Files functionality. (allow JS extension dynamics general settings for the attachments)

    Other way is to increase this field length.

    You can go to Dynamics->Settings->Customization->Customize the system

    Got to the Entities->EntityForm (or other entity if you add you Custo Jvascript box for other entity)-> open adx_registerstartupscript. Change Maximum Length to bigger value.

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 CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans