No error message if validation fails

Mehr
4 Jahre 7 Monate her #93489 von jonsen
jonsen erstellte das Thema No error message if validation fails
Dear all,

thank you for being such a great community for this amazing tool!

If I submit a page with validations errors on it (in my current survey on 1.92+), the page is just reloaded and there is no message to the user that (s)he should check for errors, nor is the error focus()ed. I made quite a lot of surveys with LS and I could have sworn that there was a Javascript alert() when there was a validation error and that the question with the error was focused.

Did I somehow break the mechanism? I adapted some css and added a Javascript function to block the Enter and Backspace keys. But I tested it without the JS function too, and it shows the same behaviour. I also tried a jQuery $(document).ready(function{ $('.error').first().focus(); }); to at least focus the first question with a validation error when the page is reloaded, but that didn't work either.

I would greatly appreciate some advice on where to look for the error.

Thank you!

Best
Jonsen

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
4 Jahre 7 Monate her #93502 von DenisChenu
DenisChenu antwortete auf das Thema: No error message if validation fails
Hello,

In general, there are validation error. Maybe some EM error or another think.

Can you put the lss file here or give us a link to test ?

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 .

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
4 Jahre 7 Monate her - 4 Jahre 7 Monate her #93518 von jonsen
jonsen antwortete auf das Thema: No error message if validation fails
Hello Denis,

please find the link below. I put the test-token in the link.


In diesem Beitrag ist für Gäste nicht alles sichtbar. Bitte melde dich an, oder registriere dich.


The first question is mandatory. I changed the class .good to have visibility: hidden.

Best
Jonsen
Letzte Änderung: 4 Jahre 7 Monate her von jonsen. Begründung: Added info

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
4 Jahre 7 Monate her #93520 von tpartner
tpartner antwortete auf das Thema: No error message if validation fails
It looks like your question.pstpl file might be missing some placeholders.

Test the survey with the default or citronade template and if those work, compare the question.pstpl files.

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
4 Jahre 7 Monate her - 4 Jahre 7 Monate her #93526 von jonsen
jonsen antwortete auf das Thema: No error message if validation fails
Hi tpartner, thank you for your reply. I tested both default and citronade, the validation alert doesn't show there either. So it seems to be a problem that's template-independent...
Letzte Änderung: 4 Jahre 7 Monate her von jonsen. Begründung: typo

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
4 Jahre 7 Monate her #93546 von jonsen
jonsen antwortete auf das Thema: No error message if validation fails
For anyone who provides a solution to this, I will speak out an invitation to a fresh beer in a bar or club in Berlin... :)

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
4 Jahre 7 Monate her #93549 von tpartner
tpartner antwortete auf das Thema: No error message if validation fails
jonsen, can you attach the sample survey and an export of your template?

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
4 Jahre 7 Monate her #93554 von jonsen
jonsen antwortete auf das Thema: No error message if validation fails
Yes, of course...

Attachments:

In diesem Beitrag ist für Gäste nicht alles sichtbar. Bitte melde dich an, oder registriere dich.


Best
Jonsen
Anhang:

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
4 Jahre 7 Monate her #93562 von jonsen
jonsen antwortete auf das Thema: No error message if validation fails

jonsen schrieb: For anyone who provides a solution to this, I will speak out an invitation to a fresh beer in a bar or club in Berlin... :)


I just now notice how cheap that sounds! Sorry... So now that includes a bed&breakfast :)

Anyways, the problem is that I don't know where to look for the error. I don't know at which place the code for this should be, so I can't trace it back to the php or anything...

Thanks alot for your help!

Best
Jonsen

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
4 Jahre 7 Monate her #93563 von tpartner
tpartner antwortete auf das Thema: No error message if validation fails
Hey, a beer is more than most folks offer us :laugh:

This is very odd - when I run the survey on my 1.92installation, with your template, everything works as expected. The pop-up alert appears and the "errormandatory" span is displayed - see below.

Dumb question, but have you updated to the final stable release of 1.92?


Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Anhang:
Folgende Benutzer bedankten sich: jonsen

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
4 Jahre 7 Monate her #93588 von jonsen
jonsen antwortete auf das Thema: No error message if validation fails

tpartner schrieb: Dumb question, but have you updated to the final stable release of 1.92?


Yes, I think so. It is v1.92+, build 120919...

The only thing (that I know of) that I changed in the php is the $showsgqacode option. Since another template doesn't fix it either and my template and survey work on your installation, I'm left baffled. Now the only thing I could try is to reinstall LS?!

Thank you for you effort!

Best
Jonsen

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
4 Jahre 7 Monate her #93690 von tpartner
tpartner antwortete auf das Thema: No error message if validation fails
Any luck Jonsen?

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
4 Jahre 7 Monate her #93725 von jonsen
jonsen antwortete auf das Thema: No error message if validation fails
Hi Tony,

thanks for keeping track on this!

Indeed, the solution was found a couple minutes ago, after I scared up all people (technicians or not) involved in the project and was supported by them in looking for the error. After we made a fresh install of the same lime survey version and I stared to adapt the survey, I found the error. And I can't belive that I was that dumb! I totally forgot about the only thing next to $showsgqacode I changed in the php files:

I added $_GET = 99184; in the beginning of index.php to always forward visitors of the server root to the only survey, skipping the Welcome page. That worked out pretty nicely, and I didn't notice the faulty behaviour quite some time. Then, I couldn't connect it to that change...

So, it's resolved now! THANK YOU TONY for reproducing the non-error!

The only thing left is to find a new way to set the default survey. But I will make a new topic for this, as I can imagine that others might be interested in that, too.

All the best
Jonsen

P.S.: You can "cash in" beers and bed&breakfast any time :)

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
4 Jahre 7 Monate her - 4 Jahre 7 Monate her #93733 von jonsen
jonsen antwortete auf das Thema: No error message if validation fails
Just one correction:
Of course it was $_GET[\'sid\'] = 99184;

The follow up topic ("Set a default survey, skip Survey List page") is here .
Letzte Änderung: 4 Jahre 7 Monate her von jonsen.

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
4 Jahre 7 Monate her #93734 von holch
holch antwortete auf das Thema: No error message if validation fails
to skip the welcome page LS has an option in the interface now, as far as I recall. And the redirect I would make with .htaccess.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Bitte Anmelden um an der Konversation teilzunehmen.

Jetzt loslegen!

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

Account einrichten