質問です。(I have a question.)
ハブスポットのCMSサービスを利用しているページで、チャットボットを使用しています。
(We are using a chatbot on a page that uses Hubspot’s CMS service.)
【problem】
スマートフォンを使用し、チャットボット経由でサブミットボタンを押すとデータが取得できず、入力した情報が全てクリアされてしまいます。
(If you use a smart phone and press the submit button via the chatbot, no data is retrieved and all information entered is cleared.)
【supplement】
・チャットボットはJavaScriptで書かれた外部ツールです。
(Chatbots are external tools written in JavaScript.)
・チャットボットはハブスポットとは連携していません。
(The chatbot is not linked to the Hubspot.)
・チャットボットで入力した情報をハブスポットの入力フォームに流し込みしているだけです。その後、チェンジイベントを走らせています。
(The information entered by the chatbot is simply poured into the Hubspot’s input form. Then running a change event.)
Example)
$('input[name="firstname"]').val('Brian').change();
・最後のサブミットボタンはチャットボットで押します。チャットボットでサブミットボタンが押されたら、DOM操作でLPのハブスポットのサブミットボタンを押す処理をしています。
(The last submit button is pressed by the chatbot. Once the submit button is pressed by the chatbot, a DOM operation is used to push the submit button at the LP hub spot.)
Example)
document.getElementByID(“”).click();
・PCのスマートフォンモードで確認した時は、処理が成功し、データが流し込めていることを確認しました。
(When we checked in smart phone mode on the PC, we confirmed that the process was successful and data was flowing in.)
・iphoneやandroidで確認した時は、データが取得できず、入力した情報が全てクリアされてしまいます。
(When I check on my iphone or android, I cannot retrieve the data and all the information I entered is cleared.)
・他にも必要な情報があればお伝えいたします。
(We will provide any other information you need.)
【Question】
・iphoneやandroidを使用し、サブミットボタンを押した時に入力した情報が全てクリアされてしまう原因は何でしょうか。PCのスマートフォンでテストした際には成功しました。
(What causes all the information entered to be cleared when using iphone or android and pressing the submit button. when tested on a PC smart phone it was successful.)