Welcome, Guest
Username: Password: Remember me

TOPIC: Question condition with javascript

Question condition with javascript 1 year 2 months ago #95915

  • king_and1
  • king_and1's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 29
  • Karma: 0
I copied you´re code , and edi the url. But still nothink happens....

It doesn´t give me an error, so it finds the ajax.php i think and it runs. But it just can´t answer the question i think?

I´ve made a simple question with nothink in it.
I set the display setting to never or hiden i dont know
and the next question should open up if the hidden question answers right.

But nothink .... :(
The administrator has disabled public write access.

Question condition with javascript 1 year 2 months ago #95926

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4069
  • Thank you received: 748
  • Karma: 341
Maybe the question ID is wrong?

Can you activate a test survey?
Cheers,
Tony Partner

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

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Question condition with javascript 1 year 2 months ago #95927

  • king_and1
  • king_and1's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 29
  • Karma: 0
I´ve checked the ID but it´s the right one....

And don´t really know how to activate a test survey
The administrator has disabled public write access.

Question condition with javascript 1 year 2 months ago #95946

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5301
  • Thank you received: 291
  • Karma: 247
king_and1 wrote:
I´ve checked the ID but it´s the right one....

And don´t really know how to activate a test survey
Just activate your survey so we can access it and post the link to the survey here.

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.

Question condition with javascript 1 year 2 months ago #96003

  • king_and1
  • king_and1's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 29
  • Karma: 0
Ok , but i would have to copy it down to another server , gonna do this today.

But maybe there´s somethink more I need to do ?

In the IRC Live Chat someone once rode me that what i want to do is really tricky and I would have to edit this action also in the core of limesurvey not only via source on a special question. So what do you think about that ? Is that a possible reason ?
The administrator has disabled public write access.

Question condition with javascript 1 year 2 months ago #96005

  • king_and1
  • king_and1's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 29
  • Karma: 0
Now I´ve tried it with changes and so on , and I figured out that the Ajax call is working. But it can´t answer the question. So the mistake is the way I (we) want to answer the question...

I´ve made a hidden Question with List(radio) Answer.
Answers are : Right (A1) Wrong (A2)

Question settings are :


Unbenannt_2013-05-15.PNG
Last Edit: 1 year 2 months ago by king_and1.
The administrator has disabled public write access.

Question condition with javascript 1 year 2 months ago #96019

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4069
  • Thank you received: 748
  • Karma: 341
You must not hide the question with the advanced setting, questions hidden with this setting cannot be manipulated with JavaScript. You need to hide it with JavaScript or CSS.
Cheers,
Tony Partner

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

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.
The following user(s) said Thank You: king_and1

Question condition with javascript 1 year 2 months ago #96023

  • king_and1
  • king_and1's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 29
  • Karma: 0
OOH MYYY GOOOD !!!! It works ^^

YES FINALLY !!!! Thank you tpartner !! You´re one of tha beest!!!!


But how can i hide it with Javascript :huh:
The administrator has disabled public write access.

Question condition with javascript 1 year 2 months ago #96025

  • king_and1
  • king_and1's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 29
  • Karma: 0
GOt it ;)

Thx anyway . You helped me a lot !!!!!!!!!
The administrator has disabled public write access.

Question condition with javascript 1 year 2 months ago #96026

  • king_and1
  • king_and1's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 29
  • Karma: 0
Well it works on my Test survey but not on the Real think -.-

used this at the end of template.css

#question91 {
display: none;
}
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.120 seconds
Donation Image