WebSite X5Help Center

 
Дмитрий Тулупов
Дмитрий Тулупов
User

Auto-delete space in third-party email form when copy-pasting  en

Author: Дмитрий Тулупов
Visited 718, Followers 1, Shared 0  

Greetings to all lovers and fans of X5!

I have a third-party form on my site where you need to enter your email address. In this form, unlike the native X5, when using Copy-Paste on a mobile device, an extra space appears. I consider this a serious problem, since most site visits now occur using smartphones and tablet devices, and this problem was identified on a mobile device.

An appeal to a third-party developer of this form did not give an answer.

I have to turn to our community for advice on fixing this inconvenient feature, which can lead to a stupor of an inexperienced user. Since when you click on the “Continue” button, the message “Enter your Email” appears, despite the fact that the Email is already specified, but the space after the email address does not allow you to continue the action.

Is there any code or script that could automatically remove the extra space after using copy-paste (Copy-Paste) on a mobile device?

Unfortunately, I cannot give you a page with a third-party html form for analysis.

If you have a solution, please indicate where to put this code in the constructor.

In any case, many thanks in advance to everyone.

Sincerely,
Dmitriy Tulupov.

Posted on the
11 ANSWERS - 2 USEFUL - 1 CORRECT
Esahc ..
Esahc ..
Moderator

If you write the email address does the extra space get put in? If not then this is the answer, do not paste. Could the space be coming from the source of the email address?

Read more
Posted on the from Esahc ..
Дмитрий Тулупов
Дмитрий Тулупов
User
Author

Thank you for getting back!

When I use a smartphone, when I go to that page with the form, I click on the place where I must enter the email address.

A keyboard immediately appears and prompts you to click on a frequently used address so as not to enter it manually.

When a key is pressed with the proposed e-mail, a space is automatically inserted after the address in the form. And if you do not remove it, then the “Next” button does not click.

This is not the case in the X5 form, but it does happen in the third-party form. I am looking for a solution to this problem for inexperienced smartphone users. After all, they may not notice the gap.

Read more
Posted on the from Дмитрий Тулупов
Дмитрий Тулупов
Дмитрий Тулупов
User
Author
Esahc ..
Если вы пишете адрес электронной почты, добавляется ли дополнительное пространство? Если нет, то это ответ, не вставлять. Может ли пробел исходить от источника адреса электронной почты?

Когда я использую смартфон, когда я захожу на ту страницу с формой, я нажимаю на то место, где я должен ввести адрес электронной почты.

Сразу появляется клавиатура и предлагает нажать на часто используемый адрес, чтобы не вводить его вручную.

При нажатии клавиши с предложенным адресом электронной почты после адреса в форме автоматически вставляется пробел. А если его не убрать, то кнопка «Далее» не нажимается.

Это не так в форме X5, но это происходит в сторонней форме. Ищу решение этой проблемы для неопытных пользователей смартфонов. Ведь они могут и не заметить разрыв.

Read more
Posted on the from Дмитрий Тулупов
Esahc ..
Esahc ..
Moderator

You have us as a slight disadvantage. You cannot show the form, you do not state the 3rd party form being used and you say the WX5 form does not do this (so why not use the WX5 form?) Are you sure the space (control or non printable character) is not embedded in the "recently used" address?

Are you absolutely sure that this space is not present when used at desktop or tablet resolution?

If this is only a problem with the form you are using, then this must be addressed by the form creator.

Read more
Posted on the from Esahc ..
Дмитрий Тулупов
Дмитрий Тулупов
User
Author
Esahc ..
You have us as a slight disadvantage. You cannot show the form, you do not state the 3rd party form being used and you say the WX5 form does not do this (so why not use the WX5 form?) Are you sure the space (control or non printable character) is not embedded in the "recently used" address? Are you absolutely sure that this space is not present when used at desktop or tablet resolution? If this is only a problem with the form you are using, then this must be addressed by the form creator.

I am grateful to you that at least you alone are trying to help me and are in correspondence with me!

I don't feel like writing the same thing a third time and I need technical help, not moral.

I ask me to answer a specific question: Is there any code that could automatically remove an extra space after entering an email address in a form?

I want to clarify the following: when you copy an email address and paste it into this form, there is no space, but when you press on the mobile phone keypad on the proposed email address, then a space appears. I'm assuming it's the smartphone keyboard functionality, since this problem is also present when filling out other forms, such as the example when logging into PayPal.

I want to note that the X5 website builder can remove the extra space at the end of the address. I want to conclude that programmatically, using the code, you can force to remove the extra space. Please help technical as the developer of the form is not responding.

Read more
Posted on the from Дмитрий Тулупов
Esahc ..
Esahc ..
Moderator

Sadly I am of no help, and because this is 3rd party code you are requesting neither can Incomedia. There are one or 2 here who can possibly help, but this code would be unique to your page, the programmer would need to see the page to identify the variables that need to be manipulated.

I will step back and we'll see if anyone can step into the fray. Good luck.

Read more
Posted on the from Esahc ..
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Best User of the month PT

(It > En) ... jQuery function >> $.trim()
... or, as Esahc ..  suggested, post the LINK ...

.

ciao

-

Read more
Posted on the from  ‪ KolAsim ‪ ‪
Дмитрий Тулупов
Дмитрий Тулупов
User
Author
 ‪ KolAsim ‪ ‪
(It > En)... функция jQuery >> $.trim() ... или, как предложил Esahc..  , опубликуйте ССЫЛКУ... . Чао -

Thanks for trying to help me.

I created a test page for you with a third-party form where you need to specify your email.

Try to go to this page on your smartphone, click on the place where you need to enter Email and on the keyboard click on the suggested, frequently used email address. After pressing this button on the smartphone keyboard, an email address will appear and it will have an extra space. If it is not manually removed, the button will not work. This is a big problem for inexperienced smartphone users.

Big request. With a possible solution to this problem, please tell me in more detail or show me on a screenshot where you need to put the code.

Thanks in advance,
Dmitry Tulupov.

Read more
Posted on the from Дмитрий Тулупов
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Best User of the month PT
Дмитрий Тулупов
‪... ... ...  I created a test page for you with a third-party form where you need to specify your email. ... ... 
(It > En) ... OK, ...it is regular, no space appears; ...the address is cut off at the end of the last letter...
... it is regular even with the copy-paste of the e-mail from other text...
... the space is created only if you use the text mode confirming the auto composition proposed by the keyboard, as expected if you want to continue typing other text...
... anyway, if you want to use my code cleaning trailing spaces for this online example, this is the code:
<script>
$(document).ready(function(){//K>;
$("input[name='cps_email']").on("input", function(){//K1>;
$(this).val($.trim($(this).val()));//K2 > | <<:
});//K1<<:
});//K<;
</script>

,

ciao

.

Read more
Posted on the from  ‪ KolAsim ‪ ‪
Дмитрий Тулупов
Дмитрий Тулупов
User
Author
‪ KolAsim ‪ ‪
Дмитрий Тулупов ‪... ... ...  I created a test page for you with a third-party form where you need to specify your email. ... ...  (It > En) ... OK, ...it is regular, no space appears; ...the address is cut off at the end of the last letter... ... it is regular even with the copy-paste of the e-mail from other text... ... the space is created only if you use the text mode confirming the auto composition proposed by the keyboard, as expected if you want to continue typing other text... ... anyway, if you want to use my code cleaning trailing spaces for this online example, this is the code: <script> $(document).ready(function(){//K>; $("input[name='cps_email']").on("input", function(){//K1>; $(this).val($.trim($(this).val()));//K2 > | <<: });//K1<<: });//K<; </script> , ciao .

Thank you!

You are super professional!

Everything is working!

There is no gap!

I wish you success in business!

Read more
Posted on the from Дмитрий Тулупов