Looking for old JS code to hide question in LS 1.82

More
4 years 1 month ago #113592 by che
che created the topic: Looking for old JS code to hide question in LS 1.82
I have a colleague using an old version of LS (1.82) and I'm having trouble finding the old JS code for hiding a question. I recall that was the method, but if there's another way we're open to that too. Can someone please point me to that info? Thanks!

Please Log in or Create an account to join the conversation.

More
4 years 1 month ago #113593 by holch
holch replied the topic: Looking for old JS code to hide question in LS 1.82
Sorry, no direct help, but I would seriously recommend that your colleague sets up a installation with the newest Limesurvey build (2.05 141003). It is really worth it and setup is really quick (did a installation yesterday in about 5 minutes including creating the database and database user via Cpanel).

Because one thing is functionality, but then your colleague should really also think about security. There are no security updates to these old installation. I would highly recommend to make a move to the newest version of Limesurvey.

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

Please Log in or Create an account to join the conversation.

More
4 years 1 month ago #113595 by che
che replied the topic: Looking for old JS code to hide question in LS 1.82
Not an option. It's a university installation and its use is required for the project. Thanks though

Please Log in or Create an account to join the conversation.

More
4 years 1 month ago #113596 by holch
holch replied the topic: Looking for old JS code to hide question in LS 1.82
well, I assumed something like this already.

I just don't get why universities are not doing they upgrades. It is not that every 2 weeks there is a new version. I can see that there might be some logistics behind it, but you can always run two installations in parallel and then move everyone to the new one, when possible. But this is another problem.

The problem is that the forum is getting emptied from time to time, so the old solutions are not here anymore. And I guess no one of the JS experts will have a 1.8x installation to make tests.

It is very difficult for an open source project to give support for such an old installation. For something like 1.9x it might be easier.

But maybe you are lucky to find someone who can help. Fingers crossed.

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

Please Log in or Create an account to join the conversation.

More
4 years 1 month ago #113598 by che
che replied the topic: Looking for old JS code to hide question in LS 1.82
I completely agree with you and was very surprised they were running such an old version. We're running 2.00+ for our own organization. I understand it's a long shot, but we would appreciate it if anyone can help. We don't mind doing the testing on our own. Thanks!

Please Log in or Create an account to join the conversation.

More
4 years 1 month ago #113602 by tpartner
tpartner replied the topic: Looking for old JS code to hide question in LS 1.82
The JS to hide a question in 1.82 should be the same as in current versions except there is no way to automatically insert the question ID . So, this should work if you replace "12345" with the question ID .
<script type="text/javascript" charset="utf-8">	
	$(document).ready(function() {
 
		$('#question12345').hide();
 
	});
</script>


Or, you could do it in template.css:
#question12345 {
	display: none;
}

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: che

Please Log in or Create an account to join the conversation.

More
4 years 4 weeks ago #113716 by che
che replied the topic: Looking for old JS code to hide question in LS 1.82
Thanks much, Tpartner.

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!