Home arrow Support arrow Forums
LimeSurvey Forums
Welcome, Guest
Please Login or Register.    Lost Password?
[done] disable an option in an answer, how to? (1 viewing) (1) Guest
Go to bottom Favoured: 0
TOPIC: [done] disable an option in an answer, how to?
#18229
phollweg (User)
Fresh Lemon
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
[done] disable an option in an answer, how to? 2 Months, 2 Weeks ago Karma: 0  
Hi - Can I disable an answer to a question, ie:

<option disabled label="second" value="second option"></option>

So that the answer is still there, but not selectable?

Thanks, Phillip
 
Logged Logged  
 
Last Edit: 2008/09/08 15:37 By Mazi.
  The administrator has disabled public write access.
#18235
jcleeland (Admin)
Moderator Lime
Posts: 243
graphgraph
User Offline Click here to see the profile of this user
Re:disable an option in an answer, how to? 2 Months, 2 Weeks ago Karma: 7  
No, this is not currently possible.
 
Logged Logged  
  The administrator has disabled public write access.
#18335
Shnoulle (User)
Expert Lime
Posts: 113
graphgraph
User Offline Click here to see the profile of this user
Re:disable an option in an answer, how to? 2 Months, 2 Weeks ago Karma: 3  
You can use a workaround in your survey.

Code:

<SCRIPT>
<!--
function Custom_On_Load(){


}
// -->
</SCRIPT>



To disbale something in JS is: document.getElementById("....".disabled

To know the ID, you can test the survey and see tyhe dom (the source of the page).

See docs.limesurvey.org/tiki-index.php?page=...m_on_x_load_function for some example.
 
Logged Logged  
  The administrator has disabled public write access.
#18363
Mazi (Moderator)
Moderator Lime
Posts: 3252
graph
User Offline Click here to see the profile of this user
Re:disable an option in an answer, how to? 2 Months, 2 Weeks ago Karma: 25  
Good idea, Shnoulle!

Have you tried this yourself? If anybody has succeeded implementing this please post your complete solution so we can add this to the woraround page in the manual.
 
Logged Logged  
 
Best regards,
Mazi
______________________
Need help? I can: set up Limesurvey for you / create your survey / implement additional features / design your template / offer premium support -> Contact.
  The administrator has disabled public write access.
Go to top