Welcome, Guest
Username: Password: Remember me

TOPIC: Popup window, when missing mandatory questions

Popup window, when missing mandatory questions 2 years 4 months ago #100506

  • daycom
  • daycom's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 2
  • Karma: 0
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
The administrator has disabled public write access.

Popup window, when missing mandatory questions 2 years 4 months ago #100508

  • peterkh
  • peterkh's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 9
  • Karma: 0
which pic?
The administrator has disabled public write access.

Popup window, when missing mandatory questions 2 years 4 months ago #100512

  • daycom
  • daycom's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 2
  • Karma: 0
Here is the pic.


The administrator has disabled public write access.

Popup window, when missing mandatory questions 2 years 4 months ago #100516

  • Ben_V
  • Ben_V's Avatar
  • Offline
  • Platinum Lime
  • Posts: 1593
  • Thank you received: 391
  • Karma: 103
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
The administrator has disabled public write access.

Popup window, when missing mandatory questions 4 months 3 weeks ago #125767

Can you do this on a per survey level? or by template?
We sometimes have short surveys embedded via iframe on another website.
The administrator has disabled public write access.

Popup window, when missing mandatory questions 4 months 3 weeks ago #125770

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 8195
  • Thank you received: 1119
  • Karma: 331
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
The administrator has disabled public write access.
The following user(s) said Thank You: lemonlimebitters

Popup window, when missing mandatory questions 4 months 3 weeks ago #125823

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5839
  • Thank you received: 347
  • Karma: 261
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)limesurvey.org'"
The administrator has disabled public write access.

Popup window, when missing mandatory questions 4 months 3 weeks ago #125824

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 8195
  • Thank you received: 1119
  • Karma: 331
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
Last Edit: 4 months 3 weeks ago by DenisChenu.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.232 seconds