Popup window, when missing mandatory questions

More
3 years 6 months ago #100506 by daycom
daycom created the topic: Popup window, when missing mandatory questions
Hey!

I have a problem, when you don't fill out mandatory questions a popup window appear. It is not that visible in google chrome and I want to avoid people thinking that the survey is broken. Is there a way to suppress the javescript alert pop up?

I have marked the window in the pic, sorry it is in danish.

Thanks on advande!

Esben

Please Log in to join the conversation.

More
3 years 6 months ago #100508 by peterkh
peterkh replied the topic: Popup window, when missing mandatory questions
which pic?

Please Log in to join the conversation.

More
3 years 6 months ago #100512 by daycom
daycom replied the topic: Popup window, when missing mandatory questions
Here is the pic.


Attachments:

Please Log in to join the conversation.

More
3 years 6 months ago #100516 by Ben_V
Ben_V replied the topic: Popup window, when missing mandatory questions
Hello,
Search and edit into: application/config/config-defaults.php
(around line 90)
$config['showpopups']         =   1;
// Show popup messages if mandatory or conditional questions have not been answered correctly.
// 1=Show popup message, 0=Show message on page instead.
.

Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)

Please Log in to join the conversation.

More
1 year 7 months ago #125767 by lemonlimebitters
lemonlimebitters replied the topic: Popup window, when missing mandatory questions
Can you do this on a per survey level? or by template?
We sometimes have short surveys embedded via iframe on another website.

lemonlimebitters

Please Log in to join the conversation.

More
1 year 7 months ago #125770 by DenisChenu
DenisChenu replied the topic: Popup window, when missing mandatory questions

Ben_V wrote: Hello,
Search and edit into: application/config/config-defaults.php
(around line 90)

$config['showpopups']         =   1;
// Show popup messages if mandatory or conditional questions have not been answered correctly.
// 1=Show popup message, 0=Show message on page instead.
.

NO !

Update your config file to add it to your config : manual.limesurvey.org/Optional_settings#...te_LimeSurvey_config

lemonlimebitters : with the actual version : 2 solution:
Add
<script>showpopup=0;</script>
somewhere in your template file (or in survey description, if you need it by survey)
Use your own showStartPopups function in template.js git.framasoft.org/Shnoulle/SkeletonQuest...ter/template.js#L418

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
The following user(s) said Thank You: lemonlimebitters

Please Log in to join the conversation.

More
1 year 7 months ago #125823 by Mazi
Mazi replied the topic: Popup window, when missing mandatory questions

lemonlimebitters wrote: Can you do this on a per survey level? or by template?
We sometimes have short surveys embedded via iframe on another website.

You can simply copy the template for surveys which should NOT show the pop up and then try Denis' solution of adding this to your template, e.g. before the closing </head> tag at startpage.pstpl:
<script>showpopup=0;</script>


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

More
1 year 7 months ago - 1 year 7 months ago #125824 by DenisChenu
DenisChenu replied the topic: Popup window, when missing mandatory questions

Mazi wrote:

lemonlimebitters wrote: Can you do this on a per survey level?

<script>showpopup=0;</script>

And for survey level : put this in your survey description.

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
Last Edit: 1 year 7 months ago by DenisChenu.

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now