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!
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
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?
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
Hi partner,
Can you please help me in this.
Thank you
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.
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
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.
Hi Developer D365,
I tested what you described: the maxlength attribute of textarea has been set to 180 correctly. (I tested with Chrome)
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
André Arnaud de Cal...
291,965
Super User 2025 Season 1
Martin Dráb
230,836
Most Valuable Professional
nmaenpaa
101,156