Привет, я хочу чтобы изменить ошибку ответа из контактной формы CRM, которую с помощью stackoverflow мне удалось интегрировать в WordPress. Форма связана с JavaScript для интеграции сообщений, отправленных из формы сайта WordPress, с другой платформой. (Управление отношениями с клиентами).
Теперь у меня есть этот код контактной формы:
Код: Выделить всё
Код: Выделить всё
Name and surname este obligatoriu
Я пытался создать этот скрипт, но это ничего не дало.
Код: Выделить всё
if (window.location.pathname == '/site/tennishero/') {
jQuery('.Response span').each(function() {
if (jQuery(this).text() == 'Name and surname este obligatoriu') jQuery(this).text('Name si required');
});
}
if (window.location.pathname == '/site/tennishero/') {
jQuery('.Response span').each(function() {
if (jQuery(this).text() == 'Telefon este obligatoriu') jQuery(this).text('Phone is required');
});
}
if (window.location.pathname == '/site/tennishero/') {
jQuery('.Response span').each(function() {
if (jQuery(this).text() == 'Email este obligatoriu') jQuery(this).text('Email is required');
});
}
Подробнее здесь: https://stackoverflow.com/questions/389 ... rom-a-form
Мобильная версия