In version 2, the following script would hide the 'Next' button and automatically load the next question once an answer was clicked. However, in version 3, this behaviour no longer works...
Does anyone know how I can update the javascript below such that drop down and radio button questions auto-advance?
Joffm wrote: in version 3. the "#movenextbtn,#movesubmitbtn" have other IDs.
Now it is "#ls-button-submit"
Thank you Joffm - the code below now hides the 'Next' button and auto-advances on dropdown questions but nothing happens on radio button array questions...
Looking at the developer tools in Google, I've tried changing
Code:
tr.radio-list
to
Code:
td.radio-item
and
Code:
.radio-item
with no joy... do you know what else I need to change for the auto advancing to work on radio array type questions?
If I want to do a find/replace type exercise in mysql to update the script to this new code, are there any pointers or tips for LimeSurvey? The scripts are all inserted into the question source with the corresponding <script> tags...
I know some people talk about serialisation as something to watch out for in WordPress but are there any issues to be aware of that might affect LimeSurvey at all?
ok, so having looked into this, the mysql statement below seems to work fine as a way of mass updating strings in questions or in other fields...
if you run into problems with charachters that need to be escaped and this includes a lot of punctuation, quotes, hashes and so on, mysql workbench is a quick way to check your syntax...
Code:
UPDATE `ls_db`.`ls_table`
SET `ls_field` = replace(ls_field, 'unwanted_text', 'wanted_text');