Survey in iframe doesn't submit, only refreshes page

Mehr
4 Monate 2 Wochen her - 4 Monate 2 Wochen her #178947 von FelixG
COM_KUNENA_MESSAGE_CREATED_NEW
My survey is embedded as an iframe and works fine on Desktop, but on mobile the Submit button will refresh the page and submit an empty answer - often twice. Does anyone have had this problem before?

I tried to prevent the submit in code like below, but it seems the trigger('click') is the only way to submit and that has the same effect. Is there another way to trigger the submit?
$(document).on('click', '#ls-button-submit', function (e) {
     e.preventDefault();
     console.log("submit");
     $('#ls-button-submit').trigger('click'); // doesn't work on mobile when in iframe
})

Any help is appreciated, thanks!
Last edit: 4 Monate 2 Wochen her by FelixG.

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

LimeSurvey Partners
Mehr
4 Monate 2 Wochen her #178975 von DenisChenu
COM_KUNENA_MESSAGE_REPLIED_NEW
Can you try disable ajax mode and see what happen ?

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand .
An error happen ? Before make a new topic : remind the Debug mode .

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
4 Monate 2 Wochen her #178981 von FelixG
COM_KUNENA_MESSAGE_REPLIED_NEW
Hey, thanks for the reply!
When disabling Ajax mode clicking submit will give an error page back, saying the session might have ended or I disabled cookies. Hm.

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
4 Monate 2 Wochen her - 4 Monate 2 Wochen her #178984 von FelixG
COM_KUNENA_MESSAGE_REPLIED_NEW
It seems it might be a problem with the iframe and some security block, because the website and the iframe are on different origins. I don't know how to fix this yet though. It only happens when in an iframe and on iPhone.
Last edit: 4 Monate 2 Wochen her by FelixG.
Folgende Benutzer bedankten sich: DenisChenu

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
4 Monate 2 Wochen her #178987 von DenisChenu
COM_KUNENA_MESSAGE_REPLIED_NEW
Yes iphone disable ALL cookies inside iframe : even session cookie …

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand .
An error happen ? Before make a new topic : remind the Debug mode .

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
4 Monate 2 Wochen her - 4 Monate 2 Wochen her #178998 von FelixG
COM_KUNENA_MESSAGE_REPLIED_NEW
Thanks, do you know how to turn off the session cookie? I managed with the other ones..
Last edit: 4 Monate 2 Wochen her by FelixG.

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
4 Monate 2 Wochen her #178999 von DenisChenu
COM_KUNENA_MESSAGE_REPLIED_NEW
We NEED session cookie … i's a iphone issue

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand .
An error happen ? Before make a new topic : remind the Debug mode .

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
4 Monate 2 Wochen her - 4 Monate 2 Wochen her #179000 von FelixG
COM_KUNENA_MESSAGE_REPLIED_NEW
Oh I misread your message, understood now, thanks.
Last edit: 4 Monate 2 Wochen her by FelixG.

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Jetzt loslegen!

Melden Sie sich jetzt an, und erstellen Sie in wenigen Minuten Ihre erste Umfrage.

Account einrichten

Abonnieren Sie unseren Newsletter

Abonnieren Sie unseren Newsletter für alle Neuigkeiten rund um LimeSurvey
captcha