Load unfinished survey button

More
5 years 5 days ago #86955 by joss
joss created the topic: Load unfinished survey button
Hello,
I'd like to hide the "Load unfinished survey" from the survey's page because it always confuses the visitors.
They don't know if the Load or the Resume Later buttons are the same.
I'd like to have only the "Submit", "Resume later" and "Exit" buttons.
How could I do that?

I would like to put the "load unfinished survey" button or link outside the survey, but as I see the button uses the post method and I can't see the exact url where I should make the link.

Can someone help?

Thanks in advance

Please Log in to join the conversation.

More
5 years 14 hours ago #87162 by joss
joss replied the topic: Load unfinished survey button
I managed to put some code in order to load a survey using GET variables.

in index.php I have it in line 664, I changed
//Allow loading of saved survey
if ( isset($_POST['loadall']) && $_POST['loadall'] == $clang->gT("Load Unfinished Survey") )
{
    require_once("load.php");
}

into
//Allow loading of saved survey
if ( (isset($_POST['loadall']) && $_POST['loadall'] == $clang->gT("Load Unfinished Survey")) || ($_GET['loadall'] == "loadsurvey") )
{
    require_once("load.php");
}

Using GET now I can have the link to load a survey from anywhere
www.mydomain.com/index.php?sid=123456&loadall=loadsurvey

Please Log in to join the conversation.

More
5 years 14 hours ago #87164 by joss
joss replied the topic: Load unfinished survey button
In order to hide the Load unfinished survey button I changed line 332 in replacements.php to hide the input tag

this
$_saveall = "\t\t\t<input type='submit' name='loadall' value='" . $clang->gT("Load Unfinished Survey") . "' class='saveall' " . (($thissurvey['active'] != "Y") ? "disabled='disabled'" : "") . "/>"
into this
$_saveall = "\t\t\t<!-- <input type='submit' name='loadall' value='" . $clang->gT("Load Unfinished Survey") . "' class='saveall' " . (($thissurvey['active'] != "Y") ? "disabled='disabled'" : "") . "/> -->"

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now