Developer forum

Forum » Ecommerce - Standard features » EditableListBox not allowing email addresses longer than 36 characters

EditableListBox not allowing email addresses longer than 36 characters

Imar Spaanjaars
Imar Spaanjaars
Reply

Hi there,

When adding a long email address in the "Send to others" editable list box for an order flow (under Settings | Ecommerce | Orders | Order flows, see dump) we get an error saying the address is invalid (Please use correct email format). I tracked down the issue to this file: /Admin/Extensibility/JavaScripts/MultipleValuesEditor.js which has this code:

link.writeAttribute('title', this.get_terminology().removeItem || '');
if (value.length > 36) {
  value = value.substr(0, 36) + '...';
}

It seems to clip the address and add an ellipses when it's too long. I think it should do that for presentation purposes only, but it's doing it to the actual value. By the time the address hits the validateEmail in EcomOrderState_Edit.aspx, the long address has been changed to something like "long-long-long-long-long-long... causing it to be an invalid address.

Short of asking the customer to use a shorter email address, are there any work arounds for this? We have a customer that needs to use that long address for some reason and this is blocking them from sending out the proper notifications.

Thanks!

Imar

Image_559.png

Replies

 
Dmitriy Benyuk
Reply
This post has been marked as an answer

Hi Imar,
that is a bug, tfs# 52553 created. As a workaround you can fix it in the /Admin/Extensibility/JavaScripts/MultipleValuesEditor.js file:

 var truncatedValue = value;
        if (truncatedValue.length > 36) {
            truncatedValue = truncatedValue.substr(0, 36) + '...';
        }

        span.appendChild(document.createTextNode(truncatedValue));

Regards, Dmitrij

Votes for this answer: 1
 
Kristian Kirkholt
Kristian Kirkholt
Reply

Hi Imar

The #52553 "editableListBox not allowing email addresses longer than 36 characters" has been fixed in version 9.4.16

You are able to find this build in the download section:

http://doc.dynamicweb.com/releases-and-downloads/releases

Please contact Dynamicweb Support if you need any additional help regarding this.

Kind Regards
Dynamicweb Support
Kristian Kirkholt

 

You must be logged in to post in the forum