Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Suggested answer

D365 Form Text Area length is different than actual content length

(0) ShareShare
ReportReport
Posted on by 70

Hello Everyone,

I found one unusual behavior with D365 marketing form text area field

I have set text area field length to 180 but it is allowing to paste the characters more than 180 characters and also when i find the length for the text in console it is giving me length of 180 but actual text length is more than that.

Max Length Limit : 180.

Pasted character length : 195

Character limit shown in console : 179

Can someone please help me in this!

  • Suggested answer
    Aga M Profile Picture
    Aga M on at
    RE: D365 Form Text Area length is different than actual content length

    Hi Developer D365,

    Thank you for reaching out!

    If you are still experiencing this issue, kindly please create a support ticket and our team will investigate it.

    Best Regards,

    Aga

  • cloflyMao Profile Picture
    cloflyMao 25,202 on at
    RE: D365 Form Text Area length is different than actual content length

    Hi Developer D365,

    1. Did you test form in old browser such as IE8, IE9? 

    The "maxlength" attribute of textarea element is not supported with these browser.

    The easiest way would be migrate to modern browser such as Edge.

    Or you could set limit characters by JavaScript:

    https://stackoverflow.com/questions/9109313/maxlength-for-text-area-doesnt-work-in-ie

    http://www.adamthings.com/post/2013/05/02/limiting-textarea-characters-in-internet-explorer/

    2. Did you encounter the notification in form page form?

    pastedimage1592301106202v1.png

    I tested it but I didn't reproduce the issue.

    You could check whether there is update for marketing application, 

    then create a new form page record and paste the new created script to your WordPress page to test whether the issue could be solved.

    Regards,

    Clofly

  • Developer D365 Profile Picture
    Developer D365 70 on at
    RE: D365 Form Text Area length is different than actual content length

    Hi partner,

    Can you please help me in this.

    Thank you

  • Developer D365 Profile Picture
    Developer D365 70 on at
    RE: D365 Form Text Area length is different than actual content length

    Hi Clofy,

    Thank you for your reply

    For no1; Sorry but i m afraid i cant share the code

    For no2: i have replaced the version in my WordPress CMS system with your provided js but that warning is still there in my form page can you please help in this.

    80687.png

  • cloflyMao Profile Picture
    cloflyMao 25,202 on at
    RE: D365 Form Text Area length is different than actual content length

    Hi Developer D365,

    No 1. Could you share source code of your page if possible?(or the link to issued page would be better.)

    No 2. Did the issue display in notification bar when your opened form of marketing form?

    Try to replace the loader script to 

    https://mktdplp102cdn.azureedge.net/public/latest/js/loader.js?v=1.62.1050.0

    Regards,

    Clofly

  • Developer D365 Profile Picture
    Developer D365 70 on at
    RE: D365 Form Text Area length is different than actual content length

    HI Clofly,

    Thank you for your reply

    i have cehcked all the 3 cases you provided  but still when i paste long paragraph in textfield its length is more than 180.

    for example. i have one paragraph with  200 characters when i paste this in textarea in form it allow upto 183 sometimes 190 characters in textarea maxlength property is properly set for this field.

    No 2. Also can you please help me in this probelm:

    Today when i logged in in my CRM and opened form i got this warnning "We noticed there was an attempt to access this form via old script within last day. This can have negative performance, UI experience and functional implications. Please make sure your form hosting scripts are in a form of mktdplp102cdn.azureedge.net/.../form-loader.js or mktdplp102cdn.azureedge.net/.../loader.js respectively. More information here docs.microsoft.com/.../marketing-form-client-side-extensibility"

    My form loader version is version : "mktdplp102cdn.azureedge.net/public/latest/js/form-loader.js?v=1.60.1066.0"

    Thank you.

    Waiting for your reply.

  • cloflyMao Profile Picture
    cloflyMao 25,202 on at
    RE: D365 Form Text Area length is different than actual content length

    Hi Developer D365,

    I tested what you described: the maxlength attribute of textarea has been set to 180 correctly. (I tested with Chrome)

    pastedimage1591869539461v1.png

    My typing will be prevented due to maximum length limitation.

    From browser side, the behavior should not happen if the attribute was set properly.

    Did you run your form on Portal? is there any script running on page which might has effect on textarea element?

    You could take steps below:

    1. Check whether your form has been published properly.

    2. Disable any possible script.

    2. Clear your browser cache to test again.

    Regards,

    Clofly

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,965 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,836 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans