Re: [limesurvey-developers] do we need to add more css styles for EM?
The leading Open Source survey tool
Brought to you by:
c_schmitz
From: Holger R. <ho...@ro...> - 2012-01-27 15:35:57
|
It would be great, if popups could be optional. I really don't like those Javascript-Popups. I'd rather prefer the error message on the page, just below the question, as a reload will bring you there anyway. On Fri, Jan 27, 2012 at 1:10 PM, Menno Dekker <men...@er...>wrote: > I think there are two categories: validation error and tip. The tip would > be for options 1, 3, 4 and 5 as they tell you what to do. The could be > disabled on screen or data entry as validation should enforce it, but in > print it is the only thing you have. > > I think the validation error is a different message. Example: > tip: upload between 2 and 5 files > validation: upload 1 more file > > It all depends on the validator and type of validation what the exact > error message is. So I would show them both. I agree on the popups, but I > am not sure that it is clear enough when you hit next and get returned to > the same page that it is because there is an error. You would have to be > pointed to the right question then that could be off the visible part of > the screen for large surveys / groups. So I would say only 1 popup on next > that says there are errors bot no more than one popup. Nice would be if > that dialog could tell all questions and the error message, but that would > be optional for me if they can be properly highlighted. > > > On 27-01-2012 15:39, Thomas White wrote: > > Tony (and other developers)- > > I agree that it should be possible to manage them separately, but isn't > the text always the same? > > Here are some sample messages (but putting the question attribute in > curly braces for readability): > > (1) num_answers: "Please answer between {min_answers} and {max_answers} > questions." > (2) num_value_range: "Please enter values between {min_num_value_n} and > {max_num_value_n}." > (3) sum_value_range: "The sum of the answers must be between > {min_num_value} and {max_num_value}." > > You could have exactly the same text in the following locations: > (1) Tip - to optionally show the user the validation rules before they try > answering the question. > (2) Validation - to always show the rules if they fail the validation > criteria; and optionally color code the text to indicate whether they pass > (e.g. green) or fail (e.g. red) the validation (similar to what is done in > 1.91 with min/max_value for sums > (3) Printable Survey - this would be the message on the printed page > saying how to answer the question (is this the same as Tip?) > (4) Data Entry - to optionally show the validation rules when people are > doing data entry - since eventually (not at the moment), data entry should > be validated the same as everything else so that errors can be identified > and fixed. > (5) Edit submitted responses. > > So, my questions are: > (1) Do you agree that we can use the same text in all 5 of those > locations? If not, why not (and what would you recommend instead)? > (2) Do you agree with my strategy of completely eliminating pop-up > validation messages? Personally, they drive me crazy and it is hard to > figure out which question on a long page needs to be fixed. I'd rather do > real-time validation (which is now being done) and somehow show the users > that the question is valid or invalid (e.g. the way I do in the 1.92 RC > demos - via changing the text of the validation messages to green or red - > but classes could certainly be used instead). > (3) Regardless of whether you agree that the validation and tip messages > should be the same, would we really ever want to show both an > always-visible tip and the (potentially identical) validation messages on > the same question? Wouldn't it make more sense to use classes to stylize > the validation criteria when needed? > > Thoughts? > > /Tom > > > On Fri, Jan 27, 2012 at 9:19 AM, Tony Partner <tpa...@pa...>wrote: > >> But, aren’t the tips and error/validation messages really two different >> animals? And therefore should be handled differently? >> >> >> >> In my mind, the tips should be to simply offer help on how to complete >> the question and be shown at all times unless explicitly disabled by the >> admin. >> >> >> >> Error/validation messages should only appear when the question is >> answered inappropriately and the admin should really only have control over >> their appearance via the template files. >> >> >> >> Can you use .append() and .remove() to add or remove the error/validation >> messages in a container div depending on how the question is answered? >> >> >> >> T. >> >> >> >> *From:* Thomas White [mailto:tom...@gm...] >> *Sent:* January-27-12 8:21 AM >> *To:* lim...@li... >> *Subject:* Re: [limesurvey-developers] do we need to add more css styles >> for EM? >> >> >> >> I neglected to communicate a critical piece of this discussion. Unlike >> in 1.91, in 1.92, there is only one copy of each message. They are meant >> to serve as tips and/or validation. In 1.91, tips and validation messages >> were separate (so different wording) and managed separately. >> >> >> >> I don't want to have tips that say one thing, and then repeat the same >> messages if the validations fail. I'd rather give people the ability to >> show/hide the tips, and color-code (or otherwise stylize) the validation >> messages if they are a problem. >> >> >> >> So, if although we could put all of the messages in a <div class="tip">, >> we should not encapsulate them all in a <div class="answers-error"> or <div >> class="errormessages">, otherwise the tips might never be shown. >> >> >> >> Furthermore, if we were to encapsulate them all in a <div class="tip">, >> we need to override the "hide-tip" behavior. I'd like to give users the >> ability to initially hide the tips, but force them to be visible if the >> validation messages fail. >> >> >> >> Given this, how would you suggest supporting both the tip and validation >> aspects of these messages? >> >> >> >> /Tom >> >> >> >> On Fri, Jan 27, 2012 at 6:45 AM, Denis Chenu <cou...@sh...> >> wrote: >> >> Hello, then maybe something like that: >> For a mandatory question ansered but wher wrong sum range: >> >> <div class="answers-error"> >> <span class="validation-ok mandatory-msg">You must answer</span> >> <span class="validation-error sum-range-msg sum-range-msg-error">Sum must >> be xx</span> >> </div> >> >> The best semantic way can be: >> <ul class="validation-message"> >> <li class="validation-ok mandatory-msg">Please answer</li> >> <li class="validation-error sum-range-msg sum-range-msg-error">Sum must >> be xx</li> >> </ul> >> Because it's a list of validation message, but we don't have allway a >> list of message ;) and have only one. >> >> Le 27/01/2012 10:14, Menno Dekker a écrit : >> >> Didn't dive in deep, but I would prefer something like >> <div class="errormessages> >> <div class="mandatory-msg">Please answer</div> >> <div class="wrong-sum-range-msg">Sum must be xx</div> >> </div> >> >> This way it is easy to use one style for all error messages and style the >> ones you want different. I don't see why people would want to hide a >> validation message but it can be done this way. >> >> So when there are errors, display all the messages in one container and >> have each message get it's own class, much like the question type classes. >> The question should get one class to show it is in error or not. The >> message should tell what kind of error. Ofcourse as much backward >> compatible as possible to help people who created custom templates. >> >> On 27-01-2012 07:23, Thomas White wrote: >> >> Please take a look at http://bugs.limesurvey.org/view.php?id=5698#c17008 and >> give feedback about the idea of increasing the granularity of CSS styles >> for different types of validation. Thanks. >> >> >> >> /Tom >> >> >> >> ------------------------------------------------------------------------------ >> >> Try before you buy = See our experts in action! >> >> The most comprehensive online learning library for Microsoft developers >> >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >> >> Metro Style Apps, more. Free future releases when you subscribe now! >> >> http://p..sf.net/sfu/learndevnow-dev2 <http://p.sf.net/sfu/learndevnow-dev2> >> >> >> >> _______________________________________________ >> >> limesurvey-developers mailing list >> >> lim...@li... >> >> https://lists.sourceforge.net/lists/listinfo/limesurvey-developers >> >> >> >> ------------------------------------------------------------------------------ >> >> Try before you buy = See our experts in action! >> >> The most comprehensive online learning library for Microsoft developers >> >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >> >> Metro Style Apps, more. Free future releases when you subscribe now! >> >> http://p..sf.net/sfu/learndevnow-dev2 <http://p.sf.net/sfu/learndevnow-dev2> >> >> >> >> _______________________________________________ >> >> limesurvey-developers mailing list >> >> lim...@li... >> >> https://lists.sourceforge.net/lists/listinfo/limesurvey-developers >> >> >> >> >> ------------------------------------------------------------------------------ >> Try before you buy = See our experts in action! >> The most comprehensive online learning library for Microsoft developers >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >> Metro Style Apps, more. Free future releases when you subscribe now! >> http://p..sf.net/sfu/learndevnow-dev2<http://p.sf.net/sfu/learndevnow-dev2> >> >> _______________________________________________ >> limesurvey-developers mailing list >> lim...@li... >> https://lists.sourceforge.net/lists/listinfo/limesurvey-developers >> >> >> >> >> >> >> >> ======= >> Email scanned by PC Tools - No viruses or spyware found. >> (Email Guard: 7.0.0.21, Virus/Spyware Database: 6.18900) >> http://www.pctools.com<http://www.pctools.com/?cclick=EmailFooterClean_51> >> ======= >> >> >> ------------------------------------------------------------------------------ >> Try before you buy = See our experts in action! >> The most comprehensive online learning library for Microsoft developers >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >> Metro Style Apps, more. Free future releases when you subscribe now! >> http://p.sf.net/sfu/learndevnow-dev2 >> _______________________________________________ >> limesurvey-developers mailing list >> lim...@li... >> https://lists.sourceforge.net/lists/listinfo/limesurvey-developers >> >> > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now!http://p.sf.net/sfu/learndevnow-dev2 > > > > _______________________________________________ > limesurvey-developers mailing lis...@li...https://lists.sourceforge.net/lists/listinfo/limesurvey-developers > > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > limesurvey-developers mailing list > lim...@li... > https://lists.sourceforge.net/lists/listinfo/limesurvey-developers > > |