Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsSurveySurveyAfter Clicking Show Results link, Unable To Get Back To Survey QuestionsAfter Clicking Show Results link, Unable To Get Back To Survey Questions
Previous
 
Next
New Post
10/17/2006 8:44 AM
 

Thank you for testing and providing feedback.

  • The view survey link is only available to admins because otherwise it will allow you to vote twice
  • The Ties New Roman font is not a bug because you can control the font using the skin that is applied. The question it was a different font before.


Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
11/7/2006 11:51 PM
 

Ok, understand issue about voting twice.  I am testing using the local VS 2005  ASP.NET Web Server so I can't yet test to see if I can vote on another machine as an Unauthenticated User.

I installed the 4.0.02 Nov 1st release in a new installation and I still get the following errors:

1. After setting up a new survey and using Type: Single selection, the first radio button in the list of questions is selected by default when the survey is viewed.  In the previous version of the Survey module, no radio buttons were initially selected after a new survey was created.  Pre-selecting a radio button makes the survey imply that there is a correct answer and and would probably skew survey results.

2.  The initial survey question fonts default to Times Roman and there appears to be no way of changing the font even if you apply a different skin as you described above.  The Question font stays as Times Roman no matter what I do.  Can you explain the steps on how to troubleshoot this issue?

Thanks,

Stefan Pantu, CSC inc.

 

 
New Post
11/9/2006 9:30 PM
 
stefanpantu wrote

1. After setting up a new survey and using Type: Single selection, the first radio button in the list of questions is selected by default ...

2.  The initial survey question fonts default to Times Roman and there appears to be no way of changing the font even if you apply a different skin as you described above.  The Question font stays as Times Roman no matter what I do.  Can you explain the steps on how to troubleshoot this issue?

1. While I see your point I have to disagree. Mostly I got rid of that because I wanted to reduce the code complexity to make this module more accessible to beginners. Have the first value preselected allowed me to do that.

2. I will fix this in the next release until then replace all the code in Survey.ascx with this code:

<%@ Control Language="vb" AutoEventWireup="false" Inherits="DotNetNuke.Modules.Survey.Survey" CodeFile="Survey.ascx.vb" %>

<asp:panel id="pnlSurvey" runat="server" visible="False">

<asp:datalist id="lstSurvey" runat="server" cellpadding="4" datakeyfield="SurveyId">

<ItemTemplate>

<asp:HyperLink id="cmdEdit2" ImageUrl="~/images/edit.gif" NavigateUrl='<%# EditURL("SurveyId",DataBinder.Eval(Container.DataItem,"SurveyId")) %>' Visible="<%# IsEditable %>" runat="server" />

<asp:Label ID="QuestionLabel" runat="server" Text='<%# Eval("Question") %>' CssClass="NormalBold"></asp:Label><br />

<asp:RadioButtonList ID="optOptions" runat="server" CssClass="Normal">

</asp:RadioButtonList>

<asp:CheckBoxList ID="chkOptions" runat="server" CssClass="Normal">

</asp:CheckBoxList><br />

</ItemTemplate>

</asp:datalist>

<asp:linkbutton id="cmdSubmit" runat="server" resourcekey="cmdSubmit" CssClass="CommandButton">Submit Survey</asp:linkbutton>&nbsp;

<asp:linkbutton id="cmdResults" runat="server" resourcekey="cmdResults" CssClass="CommandButton">View Results</asp:linkbutton></asp:panel>

<asp:Label ID="Message_Label" runat="server" EnableViewState="False" CssClass="NormalBold"></asp:Label>

<asp:panel id="pnlResults" runat="server" visible="False">

<asp:datalist id="lstResults" runat="server" cellpadding="4" datakeyfield="SurveyId">

<itemtemplate>

<asp:HyperLink id="cmdEdit2" ImageUrl="~/images/edit.gif" NavigateUrl='<%# EditURL("SurveyId",DataBinder.Eval(Container.DataItem,"SurveyId")) %>' Visible="<%# IsEditable %>" runat="server" />

<asp:Label ID="lblQuestion2" Runat="server" CssClass="NormalBold" Text='<%# FormatQuestion(DataBinder.Eval(Container.DataItem,"Question"),lstResults.Items.Count + 1) %>'>

</asp:Label><br>

<asp:label id="lblResults" runat="server" cssclass="Normal"></asp:label>

<br>

</itemtemplate>

</asp:datalist>

<asp:linkbutton id="cmdSurvey" runat="server" resourcekey="cmdSurvey" cssclass="CommandButton">View Survey</asp:linkbutton>

</asp:panel>



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
11/9/2006 10:43 PM
 

 stefanpantu wrote

1. After setting up a new survey and using Type: Single selection, the first radio button in the list of questions is selected by default ...

AdefWebserver wrote

1. While I see your point I have to disagree. Mostly I got rid of that because I wanted to reduce the code complexity to make this module more accessible to beginners. Have the first value preselected allowed me to do that.


If you are designing a pure Windows Forms user interface, I would agree that at least one radio button in a radio button group must be preselected.  But preselecting a radio button by default in a list of survey questions makes absolutely NO sense.  Can you explain your reasoning above on how preselecting a single radio button in a list of survey questions "reduces the code complexity to make this module more accessible to beginners" ?  I just don't understand your reasoning.

If you don't want to change this functionality to not preselect a radio button, that's ok, just tell us how to modify your code to disable the radio button preselection and make the survey module regress to the previous functionality.

Thanks,

Stefan Pantu

 

 
New Post
11/12/2006 8:00 PM
 

To remove the default selection...

1) Install the Survey Module

2) Open the "Survey.ascx.vb" file (you can use Notepad).

3) Change the line (in the lstSurvey_ItemDataBound method):

optOptions.SelectedValue = SurveyOptionList.Item(0).SurveyOptionId.ToString

To:

'optOptions.SelectedValue = SurveyOptionList.Item(0).SurveyOptionId.ToString

4) Save the file

Now that the Survey Module has been converted to the new WSP format you can make this and other changes using a simple text editor.



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsSurveySurveyAfter Clicking Show Results link, Unable To Get Back To Survey QuestionsAfter Clicking Show Results link, Unable To Get Back To Survey Questions


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out