You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
a. User story
As a survey degisner I want to show survey's title on Surveymobile.aspx page
So I made some changes on SurveyMobile.aspx.cs (and .aspx of course, just change to "CodeFile = SurveyMobile.aspx.cs")
b. Acceptance Criteria
These are what I added;
Added this after (copied from customresults page) "void Page_Load(Object sender, EventArgs e)"
private string GetSurveyTitle()
{
int id = GetSurveyId();
SurveyData surveyData = new Surveys().GetSurveyById(id, "");
string _surveyTitle = surveyData.Surveys[0].Title;
return _surveyTitle;
}
And added this to after "SurveyLayoutData _userSettings;" Page.Title = GetSurveyTitle();
All is yours, didn't add any bit :)
This way designers can show the title easily. Maybe a question can be added to ask "Do you want to show title on page" or a field for title asked via "type here whatever you want to be shown as title".
The text was updated successfully, but these errors were encountered:
2. NEW FEATURE
a. User story
As a survey degisner I want to show survey's title on Surveymobile.aspx page
So I made some changes on SurveyMobile.aspx.cs (and .aspx of course, just change to "CodeFile = SurveyMobile.aspx.cs")
b. Acceptance Criteria
These are what I added;
Added this after (copied from customresults page) "void Page_Load(Object sender, EventArgs e)"
And added this to after "SurveyLayoutData _userSettings;"
Page.Title = GetSurveyTitle();
All is yours, didn't add any bit :)
This way designers can show the title easily. Maybe a question can be added to ask "Do you want to show title on page" or a field for title asked via "type here whatever you want to be shown as title".
The text was updated successfully, but these errors were encountered: