Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Problem with Array by column filter

Problem with Array by column filter 2 months 3 weeks ago #108206

  • Soerioes
  • Soerioes's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 12
  • Karma: 0
Hello
I tried to do this: manual.limesurvey.org/Workarounds:_Manip...2Multiple-Options.22
But it didn´t work out.
Like in the discribition I placed the functions in my template.js file:

editor_bild.jpg



Then I placed the script in the source of one of the questions:
Quellcode.jpg



But it didn`t work. Can somebody help me. Where is the mistake I made?
best
Soerioes
Last Edit: 2 months 3 weeks ago by Soerioes.
The administrator has disabled public write access.

Problem with Array by column filter 2 months 3 weeks ago #108207

  • urbana
  • urbana's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 18
  • Thank you received: 1
  • Karma: 1
did you insert the question text after placing the javascript?
then you replaced the script with your question text

i place my javascript in the help text

You can check the following things (use chrome for that):
1. Start the question and check the javascript console for errors
2. Right Mouse click on the question -> Inspect Element -> search for your script in the source code is it there? if not perhaps you overwrited it

Further: I noticed that you start the function with two var's - but the function ist defined with three var's, qMultiopt, qArray, prevPage
Perhaps that causes an error
-> forget that :)

But again check the console
Last Edit: 2 months 3 weeks ago by urbana.
The administrator has disabled public write access.

Problem with Array by column filter 2 months 3 weeks ago #108209

  • Soerioes
  • Soerioes's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 12
  • Karma: 0
I placed the source in the help text. But it is still not working.
I checked the console and this is what it looks like:
console.jpg

I think that the function is there. But I am not sure.
The administrator has disabled public write access.

Problem with Array by column filter 2 months 3 weeks ago #108210

  • urbana
  • urbana's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 18
  • Thank you received: 1
  • Karma: 1
Yes the function is there but check the console are there any errors?
The administrator has disabled public write access.

Problem with Array by column filter 2 months 3 weeks ago #108211

  • Soerioes
  • Soerioes's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 12
  • Karma: 0
And i got this Error. But I don´t know what that means
Error.jpg
The administrator has disabled public write access.

Problem with Array by column filter 2 months 3 weeks ago #108212

  • urbana
  • urbana's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 18
  • Thank you received: 1
  • Karma: 1
I'm sorry I didn't recognized it
You have to call the function like that:
filterArrbyCol("QuesitinID")

You have to use Quotes!! Without quotes JavaScript searchs for variables with that namea but of course they doens't exists

Sorry for the spelling but i m writing from my phone with german layout
Last Edit: 2 months 3 weeks ago by urbana.
The administrator has disabled public write access.

Problem with Array by column filter 2 months 3 weeks ago #108213

  • Soerioes
  • Soerioes's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 12
  • Karma: 0
Sorry. But it is still not working.
The console shows the following mistake:

Error2.jpg
The administrator has disabled public write access.

Problem with Array by column filter 2 months 3 weeks ago #108216

  • urbana
  • urbana's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 18
  • Thank you received: 1
  • Karma: 1
Good morning yes but now we know the calling is Correct but the systems tells you the function you call doesn't exists.

Are you sure the function is in your template.JS
Are you sure the survey has the design with the template including the function

You can try to put the Function before the call in the helptext
Last Edit: 2 months 3 weeks ago by urbana.
The administrator has disabled public write access.

Problem with Array by column filter 2 months 3 weeks ago #108236

  • Soerioes
  • Soerioes's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 12
  • Karma: 0
When I place the skript in the helptext. It just shows the text itself.

test.jpg
The administrator has disabled public write access.

Problem with Array by column filter 2 months 3 weeks ago #108237

  • Soerioes
  • Soerioes's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 12
  • Karma: 0
Is it possible that I have only version 2.00?
Because I just realised this:

version.jpg
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: ITEd
Time to create page: 0.120 seconds
Donation Image