Longer user imputed answers?
(5 posts) (3 voices)-
Hello. I think that this is a great plugin and I find it very useful.
However I was wondering if there is any way to make the user imputed answers longer?
I am doing a survey for a dissertation and most of the questions require text areas rather than small text fields or multiple choice. The user can type as much as they want at the moment (in the inputed answer box), but when it is saved - the answer will only partially appear to me at the back end. Do you know of a way that I can amend this problem?Posted 2 years ago # -
I'll add this feature in the next version of the plugin. Thanks for your suggestion.Posted 2 years ago #
-
Hi,
I changed the code (very quick change) so that if there are no defined answers and users are allowed to set their own answers, that it would show a textarea instead of a single-line input line.
if($ques->allow_user_answer) {
echo "<input type='$type' name='answer-{$ques->ID}[]' id='answer-id-{$ans->ID}' class='answer' value='user-answer' />\n";
if (sizeof($all_answers) > 1) {
echo "<input type='text' name='user-answer-{$ques->ID}' class='user-answer' value='' /><br />\n";
} else {
echo "<textarea name='user-answer-{$ques->ID}' class='user-answer'></textarea><br />\n";
}
}
Posted 2 years ago # -
Hi,
What file is this mod for?
Thanks so much!Posted 2 years ago # -
Where do I add in this code? I need a longer response section too.
Posted 2 years ago #
Reply
You must log in to post.