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>
<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>