View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
17963Bug reportsSurvey takingpublic2022-04-04 10:09
ReporterMazi Assigned ToDenisChenu  
PrioritynoneSeverityblock 
Status closedResolutionfixed 
Product Version3.25.20 
Summary17963: Numbers only limitation for text question does not detect blanks and thus the user can not proceed within a survey
Description

If your text question uses the "numbers only" setting, you can still enter blanks. This will result in an error: "One or more questions have not been answered in a valid manner. You cannot proceed until these answers are valid."

This can only be reproduced if the blank is entered after a number. Entering blank + number is fine and you can proceed.
Entering number + blank throws the error.

Steps To Reproduce

Steps to reproduce

Import and activate the attached survey.
The first question allows 2 characters and numbers only.
Enter a number followed by a blank/space
-> The on-screen note "Only numbers may be entered in this field." does NOT turn red.
Click next -> An error about invalid input is shown.

Expected result

Filter blanks inputted after a number

Actual result

Blanks after an entered number are not detected.

TagsNo tags attached.
Attached Files
limesurvey_survey_286795.lss (16,893 bytes)   
<?xml version="1.0" encoding="UTF-8"?>
<document>
 <LimeSurveyDocType>Survey</LimeSurveyDocType>
 <DBVersion>366</DBVersion>
 <languages>
  <language>en</language>
 </languages>
 <groups>
  <fields>
   <fieldname>gid</fieldname>
   <fieldname>sid</fieldname>
   <fieldname>group_name</fieldname>
   <fieldname>group_order</fieldname>
   <fieldname>description</fieldname>
   <fieldname>language</fieldname>
   <fieldname>randomization_group</fieldname>
   <fieldname>grelevance</fieldname>
  </fields>
  <rows>
   <row>
    <gid><![CDATA[1259]]></gid>
    <sid><![CDATA[286795]]></sid>
    <group_name><![CDATA[G1]]></group_name>
    <group_order><![CDATA[0]]></group_order>
    <description/>
    <language><![CDATA[en]]></language>
    <randomization_group/>
    <grelevance/>
   </row>
   <row>
    <gid><![CDATA[1260]]></gid>
    <sid><![CDATA[286795]]></sid>
    <group_name><![CDATA[G2]]></group_name>
    <group_order><![CDATA[1]]></group_order>
    <description/>
    <language><![CDATA[en]]></language>
    <randomization_group/>
    <grelevance/>
   </row>
  </rows>
 </groups>
 <questions>
  <fields>
   <fieldname>qid</fieldname>
   <fieldname>parent_qid</fieldname>
   <fieldname>sid</fieldname>
   <fieldname>gid</fieldname>
   <fieldname>type</fieldname>
   <fieldname>title</fieldname>
   <fieldname>question</fieldname>
   <fieldname>preg</fieldname>
   <fieldname>help</fieldname>
   <fieldname>other</fieldname>
   <fieldname>mandatory</fieldname>
   <fieldname>question_order</fieldname>
   <fieldname>language</fieldname>
   <fieldname>scale_id</fieldname>
   <fieldname>same_default</fieldname>
   <fieldname>relevance</fieldname>
   <fieldname>modulename</fieldname>
  </fields>
  <rows>
   <row>
    <qid><![CDATA[33120]]></qid>
    <parent_qid><![CDATA[0]]></parent_qid>
    <sid><![CDATA[286795]]></sid>
    <gid><![CDATA[1259]]></gid>
    <type><![CDATA[S]]></type>
    <title><![CDATA[Q29]]></title>
    <question><![CDATA[Approximately how many years have you lived in Winston-Salem, North Carolina?]]></question>
    <preg/>
    <help/>
    <other><![CDATA[N]]></other>
    <mandatory><![CDATA[N]]></mandatory>
    <question_order><![CDATA[2]]></question_order>
    <language><![CDATA[en]]></language>
    <scale_id><![CDATA[0]]></scale_id>
    <same_default><![CDATA[0]]></same_default>
    <relevance><![CDATA[1]]></relevance>
    <modulename/>
   </row>
   <row>
    <qid><![CDATA[33120]]></qid>
    <parent_qid><![CDATA[0]]></parent_qid>
    <sid><![CDATA[286795]]></sid>
    <gid><![CDATA[1259]]></gid>
    <type><![CDATA[S]]></type>
    <title><![CDATA[Q29]]></title>
    <question><![CDATA[¿Aproximadamente cuántos años ha vivido en Winston-Salem, Carolina del Norte?]]></question>
    <preg/>
    <help/>
    <other><![CDATA[N]]></other>
    <mandatory><![CDATA[N]]></mandatory>
    <question_order><![CDATA[2]]></question_order>
    <language><![CDATA[es]]></language>
    <scale_id><![CDATA[0]]></scale_id>
    <same_default><![CDATA[0]]></same_default>
    <relevance><![CDATA[1]]></relevance>
    <modulename/>
   </row>
   <row>
    <qid><![CDATA[33121]]></qid>
    <parent_qid><![CDATA[0]]></parent_qid>
    <sid><![CDATA[286795]]></sid>
    <gid><![CDATA[1260]]></gid>
    <type><![CDATA[T]]></type>
    <title><![CDATA[name]]></title>
    <question><![CDATA[Your name]]></question>
    <preg/>
    <help/>
    <other><![CDATA[N]]></other>
    <mandatory><![CDATA[N]]></mandatory>
    <question_order><![CDATA[1]]></question_order>
    <language><![CDATA[en]]></language>
    <scale_id><![CDATA[0]]></scale_id>
    <same_default><![CDATA[0]]></same_default>
    <relevance><![CDATA[1]]></relevance>
   </row>
  </rows>
 </questions>
 <question_attributes>
  <fields>
   <fieldname>qid</fieldname>
   <fieldname>attribute</fieldname>
   <fieldname>value</fieldname>
   <fieldname>language</fieldname>
  </fields>
  <rows>
   <row>
    <qid><![CDATA[33120]]></qid>
    <attribute><![CDATA[maximum_chars]]></attribute>
    <value><![CDATA[2]]></value>
   </row>
   <row>
    <qid><![CDATA[33120]]></qid>
    <attribute><![CDATA[numbers_only]]></attribute>
    <value><![CDATA[1]]></value>
   </row>
   <row>
    <qid><![CDATA[33120]]></qid>
    <attribute><![CDATA[suffix]]></attribute>
    <value><![CDATA[años]]></value>
    <language><![CDATA[es]]></language>
   </row>
   <row>
    <qid><![CDATA[33120]]></qid>
    <attribute><![CDATA[suffix]]></attribute>
    <value><![CDATA[years]]></value>
    <language><![CDATA[en]]></language>
   </row>
  </rows>
 </question_attributes>
 <surveys>
  <fields>
   <fieldname>sid</fieldname>
   <fieldname>gsid</fieldname>
   <fieldname>admin</fieldname>
   <fieldname>expires</fieldname>
   <fieldname>startdate</fieldname>
   <fieldname>adminemail</fieldname>
   <fieldname>anonymized</fieldname>
   <fieldname>faxto</fieldname>
   <fieldname>format</fieldname>
   <fieldname>savetimings</fieldname>
   <fieldname>template</fieldname>
   <fieldname>language</fieldname>
   <fieldname>additional_languages</fieldname>
   <fieldname>datestamp</fieldname>
   <fieldname>usecookie</fieldname>
   <fieldname>allowregister</fieldname>
   <fieldname>allowsave</fieldname>
   <fieldname>autonumber_start</fieldname>
   <fieldname>autoredirect</fieldname>
   <fieldname>allowprev</fieldname>
   <fieldname>printanswers</fieldname>
   <fieldname>ipaddr</fieldname>
   <fieldname>refurl</fieldname>
   <fieldname>showsurveypolicynotice</fieldname>
   <fieldname>publicstatistics</fieldname>
   <fieldname>publicgraphs</fieldname>
   <fieldname>listpublic</fieldname>
   <fieldname>htmlemail</fieldname>
   <fieldname>sendconfirmation</fieldname>
   <fieldname>tokenanswerspersistence</fieldname>
   <fieldname>assessments</fieldname>
   <fieldname>usecaptcha</fieldname>
   <fieldname>usetokens</fieldname>
   <fieldname>bounce_email</fieldname>
   <fieldname>attributedescriptions</fieldname>
   <fieldname>emailresponseto</fieldname>
   <fieldname>emailnotificationto</fieldname>
   <fieldname>tokenlength</fieldname>
   <fieldname>showxquestions</fieldname>
   <fieldname>showgroupinfo</fieldname>
   <fieldname>shownoanswer</fieldname>
   <fieldname>showqnumcode</fieldname>
   <fieldname>bouncetime</fieldname>
   <fieldname>bounceprocessing</fieldname>
   <fieldname>bounceaccounttype</fieldname>
   <fieldname>bounceaccounthost</fieldname>
   <fieldname>bounceaccountpass</fieldname>
   <fieldname>bounceaccountencryption</fieldname>
   <fieldname>bounceaccountuser</fieldname>
   <fieldname>showwelcome</fieldname>
   <fieldname>showprogress</fieldname>
   <fieldname>questionindex</fieldname>
   <fieldname>navigationdelay</fieldname>
   <fieldname>nokeyboard</fieldname>
   <fieldname>alloweditaftercompletion</fieldname>
   <fieldname>googleanalyticsstyle</fieldname>
   <fieldname>googleanalyticsapikey</fieldname>
  </fields>
  <rows>
   <row>
    <sid><![CDATA[286795]]></sid>
    <gsid><![CDATA[1]]></gsid>
    <admin><![CDATA[Marcel Minke]]></admin>
    <adminemail><![CDATA[marcel.minke@survey-consulting.com]]></adminemail>
    <anonymized><![CDATA[N]]></anonymized>
    <faxto/>
    <format><![CDATA[G]]></format>
    <savetimings><![CDATA[N]]></savetimings>
    <template><![CDATA[shop_backy]]></template>
    <language><![CDATA[en]]></language>
    <additional_languages/>
    <datestamp><![CDATA[N]]></datestamp>
    <usecookie><![CDATA[N]]></usecookie>
    <allowregister><![CDATA[N]]></allowregister>
    <allowsave><![CDATA[Y]]></allowsave>
    <autonumber_start><![CDATA[0]]></autonumber_start>
    <autoredirect><![CDATA[N]]></autoredirect>
    <allowprev><![CDATA[Y]]></allowprev>
    <printanswers><![CDATA[N]]></printanswers>
    <ipaddr><![CDATA[N]]></ipaddr>
    <refurl><![CDATA[N]]></refurl>
    <showsurveypolicynotice><![CDATA[0]]></showsurveypolicynotice>
    <publicstatistics><![CDATA[N]]></publicstatistics>
    <publicgraphs><![CDATA[N]]></publicgraphs>
    <listpublic><![CDATA[N]]></listpublic>
    <htmlemail><![CDATA[Y]]></htmlemail>
    <sendconfirmation><![CDATA[Y]]></sendconfirmation>
    <tokenanswerspersistence><![CDATA[N]]></tokenanswerspersistence>
    <assessments><![CDATA[N]]></assessments>
    <usecaptcha><![CDATA[N]]></usecaptcha>
    <usetokens><![CDATA[N]]></usetokens>
    <bounce_email><![CDATA[marcel.minke@survey-consulting.com]]></bounce_email>
    <emailresponseto/>
    <emailnotificationto/>
    <tokenlength><![CDATA[15]]></tokenlength>
    <showxquestions><![CDATA[Y]]></showxquestions>
    <showgroupinfo><![CDATA[B]]></showgroupinfo>
    <shownoanswer><![CDATA[Y]]></shownoanswer>
    <showqnumcode><![CDATA[X]]></showqnumcode>
    <bounceprocessing><![CDATA[N]]></bounceprocessing>
    <showwelcome><![CDATA[N]]></showwelcome>
    <showprogress><![CDATA[Y]]></showprogress>
    <questionindex><![CDATA[0]]></questionindex>
    <navigationdelay><![CDATA[0]]></navigationdelay>
    <nokeyboard><![CDATA[N]]></nokeyboard>
    <alloweditaftercompletion><![CDATA[N]]></alloweditaftercompletion>
    <googleanalyticsstyle/>
    <googleanalyticsapikey/>
   </row>
  </rows>
 </surveys>
 <surveys_languagesettings>
  <fields>
   <fieldname>surveyls_survey_id</fieldname>
   <fieldname>surveyls_language</fieldname>
   <fieldname>surveyls_title</fieldname>
   <fieldname>surveyls_description</fieldname>
   <fieldname>surveyls_welcometext</fieldname>
   <fieldname>surveyls_endtext</fieldname>
   <fieldname>surveyls_policy_notice</fieldname>
   <fieldname>surveyls_policy_error</fieldname>
   <fieldname>surveyls_policy_notice_label</fieldname>
   <fieldname>surveyls_url</fieldname>
   <fieldname>surveyls_urldescription</fieldname>
   <fieldname>surveyls_email_invite_subj</fieldname>
   <fieldname>surveyls_email_invite</fieldname>
   <fieldname>surveyls_email_remind_subj</fieldname>
   <fieldname>surveyls_email_remind</fieldname>
   <fieldname>surveyls_email_register_subj</fieldname>
   <fieldname>surveyls_email_register</fieldname>
   <fieldname>surveyls_email_confirm_subj</fieldname>
   <fieldname>surveyls_email_confirm</fieldname>
   <fieldname>surveyls_dateformat</fieldname>
   <fieldname>surveyls_attributecaptions</fieldname>
   <fieldname>email_admin_notification_subj</fieldname>
   <fieldname>email_admin_notification</fieldname>
   <fieldname>email_admin_responses_subj</fieldname>
   <fieldname>email_admin_responses</fieldname>
   <fieldname>surveyls_numberformat</fieldname>
   <fieldname>attachments</fieldname>
  </fields>
  <rows>
   <row>
    <surveyls_survey_id><![CDATA[286795]]></surveyls_survey_id>
    <surveyls_language><![CDATA[en]]></surveyls_language>
    <surveyls_title><![CDATA[Numeric test Marcel]]></surveyls_title>
    <surveyls_description/>
    <surveyls_welcometext/>
    <surveyls_endtext/>
    <surveyls_url/>
    <surveyls_urldescription/>
    <surveyls_email_invite_subj><![CDATA[Invitation to participate in a survey]]></surveyls_email_invite_subj>
    <surveyls_email_invite><![CDATA[Dear {FIRSTNAME},<br />
<br />
you have been invited to participate in a survey.<br />
<br />
The survey is titled:<br />
"{SURVEYNAME}"<br />
<br />
"{SURVEYDESCRIPTION}"<br />
<br />
To participate, please click on the link below.<br />
<br />
Sincerely,<br />
<br />
{ADMINNAME} ({ADMINEMAIL})<br />
<br />
----------------------------------------------<br />
Click here to do the survey:<br />
{SURVEYURL}<br />
<br />
If you do not want to participate in this survey and don't want to receive any more invitations please click the following link:<br />
{OPTOUTURL}<br />
<br />
If you are blacklisted but want to participate in this survey and want to receive invitations please click the following link:<br />
{OPTINURL}]]></surveyls_email_invite>
    <surveyls_email_remind_subj><![CDATA[Reminder to participate in a survey]]></surveyls_email_remind_subj>
    <surveyls_email_remind><![CDATA[Dear {FIRSTNAME},<br />
<br />
Recently we invited you to participate in a survey.<br />
<br />
We note that you have not yet completed the survey, and wish to remind you that the survey is still available should you wish to take part.<br />
<br />
The survey is titled:<br />
"{SURVEYNAME}"<br />
<br />
"{SURVEYDESCRIPTION}"<br />
<br />
To participate, please click on the link below.<br />
<br />
Sincerely,<br />
<br />
{ADMINNAME} ({ADMINEMAIL})<br />
<br />
----------------------------------------------<br />
Click here to do the survey:<br />
{SURVEYURL}<br />
<br />
If you do not want to participate in this survey and don't want to receive any more invitations please click the following link:<br />
{OPTOUTURL}]]></surveyls_email_remind>
    <surveyls_email_register_subj><![CDATA[Survey registration confirmation]]></surveyls_email_register_subj>
    <surveyls_email_register><![CDATA[Dear {FIRSTNAME},<br />
<br />
You, or someone using your email address, have registered to participate in an online survey titled {SURVEYNAME}.<br />
<br />
To complete this survey, click on the following URL:<br />
<br />
{SURVEYURL}<br />
<br />
If you have any questions about this survey, or if you did not register to participate and believe this email is in error, please contact {ADMINNAME} at {ADMINEMAIL}.]]></surveyls_email_register>
    <surveyls_email_confirm_subj><![CDATA[Confirmation of your participation in our survey]]></surveyls_email_confirm_subj>
    <surveyls_email_confirm><![CDATA[Dear {FIRSTNAME},<br />
<br />
this email is to confirm that you have completed the survey titled {SURVEYNAME} and your response has been saved. Thank you for participating.<br />
<br />
If you have any further questions about this email, please contact {ADMINNAME} on {ADMINEMAIL}.<br />
<br />
Sincerely,<br />
<br />
{ADMINNAME}]]></surveyls_email_confirm>
    <surveyls_dateformat><![CDATA[1]]></surveyls_dateformat>
    <email_admin_notification_subj><![CDATA[Response submission for survey {SURVEYNAME}]]></email_admin_notification_subj>
    <email_admin_notification><![CDATA[Hello,<br />
<br />
A new response was submitted for your survey '{SURVEYNAME}'.<br />
<br />
Click the following link to see the individual response:<br />
{VIEWRESPONSEURL}<br />
<br />
Click the following link to edit the individual response:<br />
{EDITRESPONSEURL}<br />
<br />
View statistics by clicking here:<br />
{STATISTICSURL}]]></email_admin_notification>
    <email_admin_responses_subj><![CDATA[Response submission for survey {SURVEYNAME} with results]]></email_admin_responses_subj>
    <email_admin_responses><![CDATA[Hello,<br />
<br />
A new response was submitted for your survey '{SURVEYNAME}'.<br />
<br />
Click the following link to see the individual response:<br />
{VIEWRESPONSEURL}<br />
<br />
Click the following link to edit the individual response:<br />
{EDITRESPONSEURL}<br />
<br />
View statistics by clicking here:<br />
{STATISTICSURL}<br />
<br />
<br />
The following answers were given by the participant:<br />
{ANSWERTABLE}]]></email_admin_responses>
    <surveyls_numberformat><![CDATA[0]]></surveyls_numberformat>
   </row>
  </rows>
 </surveys_languagesettings>
 <themes>
  <theme>
   <sid>286795</sid>
   <template_name>shop_backy</template_name>
   <config>
    <options>inherit</options>
   </config>
  </theme>
 </themes>
 <themes_inherited>
  <theme>
   <sid>286795</sid>
   <template_name>shop_backy</template_name>
   <config>
    <options>
     <showexitandclear>1</showexitandclear>
     <ajaxmode>off</ajaxmode>
     <container>on</container>
     <backgroundimage>on</backgroundimage>
     <backgroundimagefile>./files/bg.jpg</backgroundimagefile>
     <banner>off</banner>
     <logoleft>on</logoleft>
     <logoleftfile>./files/logo.png</logoleftfile>
     <logomiddle>off</logomiddle>
     <logoright>off</logoright>
     <logolist>on</logolist>
     <logolistfile>./files/logo.png</logolistfile>
     <fontcolor>#000</fontcolor>
     <questionbackgroundcolor>#207fab</questionbackgroundcolor>
     <questiontextcolor>#FFFFFF</questiontextcolor>
     <arrayrowcolor>#C4DDF0</arrayrowcolor>
     <arrayrowhovercolor>#99B2C5</arrayrowhovercolor>
     <nextbuttoncolor>#1f82c0</nextbuttoncolor>
     <nextbuttonhovercolor>#FFFFFF</nextbuttonhovercolor>
     <previousbuttoncolor>#FFFFFF</previousbuttoncolor>
     <previousbuttonhovercolor>#e6e6e6</previousbuttonhovercolor>
     <nextbuttonfontcolor>#ffffff</nextbuttonfontcolor>
     <nextbuttonfonthovercolor>#1f82c0</nextbuttonfonthovercolor>
     <previousbuttonfontcolor>#333333</previousbuttonfontcolor>
     <previousbuttonfonthovercolor>#000000</previousbuttonfonthovercolor>
     <questionbackgroundcoloralt>#eeeeee</questionbackgroundcoloralt>
     <questiontextcoloralt>#000000</questiontextcoloralt>
     <progressbarcolor>#1f82c0</progressbarcolor>
     <showpopups>1</showpopups>
     <favicon>on</favicon>
     <faviconfile>./files/favicon.ico</faviconfile>
     <footer>© Limesurvey Consulting</footer>
     <font>noto</font>
    </options>
   </config>
  </theme>
 </themes_inherited>
</document>
limesurvey_survey_286795.lss (16,893 bytes)   
Bug heat6
Complete LimeSurvey version number (& build)Version 3.27.34+220132
I will donate to the project if issue is resolvedNo
BrowserChrome
Database type & versionMySQL 5
Server OS (if known)Ubuntu 20
Webserver software & version (if known)Apache 2.0
PHP Version7.4

Relationships

related to 17974 closedDenisChenu Text input with numbers only are not filtered 

Users monitoring this issue

There are no users monitoring this issue.

Activities

Mazi

Mazi

2022-03-15 17:32

updater   ~68679

Test link: https://ls3temp.my-survey.host/index.php/286795/lang/en/newtest/Y

DenisChenu

DenisChenu

2022-03-15 17:34

developer   ~68680

Last edited: 2022-03-18 18:27

About expected result :

  1. With number fix : trim
  2. Without number fix : show an error
Mazi

Mazi

2022-03-15 17:37

updater   ~68681

Last edited: 2022-03-18 18:27

But why would we need that additional setting? If I allow numbers only, the input should NOT contain any blank.
A blank before the number does not throw any error, only after the number.

DenisChenu

DenisChenu

2022-03-15 17:58

developer   ~68685

Last edited: 2022-03-18 18:27

It's the fix automatic value since yeard now.

The reason : it's a bad solution to update string entered by user. Best is to show error.

Then : if fix automatically : all sapce must be removed by javacript
If not fi automatically : an error must be show (if start end by space) : exactly like a input number

Mazi

Mazi

2022-03-15 18:15

updater   ~68689

Last edited: 2022-03-18 18:27

The problem is that the warning text about numeric input does not turn red in case a space is entered. Only when submitting the page an error shows but that does not tell you anything. If there are 10 questions on page, you don't even know which one caused the error.

And " We have always done it like that" is not really a convincing argument. Why not always doing a trim if that setting is activated?

DenisChenu

DenisChenu

2022-03-15 18:38

developer   ~68690

Last edited: 2022-03-18 18:27

But @Mazi : you din't understand : i NEVER write «We have always done it like that»

I say : the fix must be different according to Fix automatic value

  1. If Yes : endng (and starting) space must be removed : no error
  2. If not : a red string muts be shown with "You must enter number"

Tell me when you understand «We have always done it like that»

First comment was :

About expected result :

  1. With number fix : trim
  2. Without number fix : show an error

With Yes : you reamove a, b, c etc … you must remove space too. Clear enough ?

Mazi

Mazi

2022-03-15 19:04

updater   ~68691

Last edited: 2022-03-18 18:27

Sorry for the misunderstanding. My suggestion is to directly remove any space entered simular to how it is done with any other non-numeric cahracter. All text gets removed automatically -> the same should be done for spaces.

DenisChenu

DenisChenu

2022-03-15 19:04

developer   ~68692

Last edited: 2022-03-18 18:27

Yes, but only if Fix automatically value is set.

Mazi

Mazi

2022-03-16 08:59

updater   ~68693

Last edited: 2022-03-18 18:27

We should not make that depending on a template setting which may not exist for every template and which not every user may be able to adjust. If only numbers are allowed and blanks are causing errors, then blanks should be removed automatically since a blank is not a number.

What's your opinion, c_schmitz?

DenisChenu

DenisChenu

2022-03-16 09:07

developer   ~68695

Last edited: 2022-03-18 18:27

@Mazi : to be clear enough :

  1. The checking of validity of answer are done by Core : it must show an error (in js) if number is invalid.
  2. The automatic fix value MUST BE DISABLED : else it's a ergonomy issue (there are a report about this, and some related fix). If it's enabled : it must set a valid number.

See https://bugs.limesurvey.org/view.php?id=8247

DenisChenu

DenisChenu

2022-03-18 09:10

developer   ~68725

Last edited: 2022-03-18 18:27

@Mazi : you're right : the automatic correction on javascript seems not happen for number only on short text.

I think (unsure) it happen in 2.73: can you check and report another issue ?

Mazi

Mazi

2022-03-18 09:12

updater   ~68726

Last edited: 2022-03-18 18:27

Why do we need another bug report? This one is about the actual problem of "the automatic correction on javascript seems not happen
for number only on short text".

DenisChenu

DenisChenu

2022-03-18 09:14

developer   ~68727

Last edited: 2022-03-18 18:27

No : Numbers only limitation for text question does not detect blanks

It's NOT the same issue …

DenisChenu

DenisChenu

2022-03-18 09:15

developer   ~68728

Last edited: 2022-03-18 18:27

And : i don't know if js system are done by another dev intentionnaly.

We already have this : someone add a feature, someone remove it, someone add a feature, someone remove it, someone add a featuire, someoàne remove it …

Mazi

Mazi

2022-03-18 09:19

updater   ~68729

Last edited: 2022-03-18 18:27

Sorry, I am not that sure what the difference is. If blanks would vet filtered, this problem would be solved. But feel free to create another bug report as needed.

DenisChenu

DenisChenu

2022-03-18 09:20

developer   ~68730

Last edited: 2022-03-18 18:27

Here i just fix «Numbers only limitation for text question does not detect blanks»

Not filtering.

DenisChenu

DenisChenu

2022-03-18 16:19

developer   ~68731

Last edited: 2022-03-18 18:27

https://github.com/LimeSurvey/LimeSurvey/pull/2305

DenisChenu

DenisChenu

2022-03-18 17:47

developer   ~68732

Last edited: 2022-03-18 18:27

https://github.com/LimeSurvey/LimeSurvey/pull/2306

DenisChenu

DenisChenu

2022-03-28 12:21

developer   ~68809

Fix committed to 3.x-LTS branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&amp;id=33372

DenisChenu

DenisChenu

2022-03-30 11:56

developer   ~68830

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&amp;id=33379

LimeBot

LimeBot

2022-04-04 10:09

administrator   ~68865

Fixed in Release 5.3.8+220404

Related Changesets

LimeSurvey: 3.x-LTS 4a18d7b1

2022-03-28 12:21:40

DenisChenu


Committer: GitHub Details Diff
Fixed issue 17963: Numbers on text question does not detect blanks (#2305)

Dev: Number() remove white space then check if not update string
Dev: comment about locutus and rename var
Dev: remove unrelated fix
Affected Issues
17963
mod - assets/scripts/expressions/em_javascript.js Diff File

LimeSurvey: master d011c173

2022-03-30 11:30:01

DenisChenu


Committer: GitHub Details Diff
Fixed issue 17963: Numbers on text question does not detect white space (#2306) Affected Issues
17963
mod - assets/packages/expressions/em_javascript.js Diff File

Issue History

Date Modified Username Field Change
2022-03-15 17:31 Mazi New Issue
2022-03-15 17:31 Mazi File Added: limesurvey_survey_286795.lss
2022-03-15 17:32 Mazi Note Added: 68679
2022-03-15 17:32 Mazi Bug heat 0 => 2
2022-03-15 17:32 Mazi Summary Numbers ponly limitation for text question does not detect blanks and thus the user can not proceed within a survey => Numbers only limitation for text question does not detect blanks and thus the user can not proceed within a survey
2022-03-15 17:34 DenisChenu Note Added: 68680
2022-03-15 17:34 DenisChenu File Added: Capture d’écran du 2022-03-15 17-33-54.png
2022-03-15 17:34 DenisChenu Bug heat 2 => 4
2022-03-15 17:37 Mazi Note Added: 68681
2022-03-15 17:58 DenisChenu Note Added: 68685
2022-03-15 18:15 Mazi Note Added: 68689
2022-03-15 18:38 DenisChenu Note Added: 68690
2022-03-15 19:04 Mazi Note Added: 68691
2022-03-15 19:04 DenisChenu Note Added: 68692
2022-03-16 08:59 Mazi Note Added: 68693
2022-03-16 09:07 DenisChenu Note Added: 68695
2022-03-16 09:08 DenisChenu Note Edited: 68695
2022-03-16 09:10 DenisChenu Note Edited: 68695
2022-03-16 17:28 galads Status new => acknowledged
2022-03-16 17:28 galads Zoho Project Synchronization => |Yes|
2022-03-17 10:12 DenisChenu Assigned To => DenisChenu
2022-03-17 10:12 DenisChenu Status acknowledged => assigned
2022-03-18 09:10 DenisChenu Note Added: 68725
2022-03-18 09:12 Mazi Note Added: 68726
2022-03-18 09:14 DenisChenu Note Added: 68727
2022-03-18 09:15 DenisChenu Note Added: 68728
2022-03-18 09:19 Mazi Note Added: 68729
2022-03-18 09:20 DenisChenu Note Added: 68730
2022-03-18 16:19 DenisChenu Note Added: 68731
2022-03-18 17:47 DenisChenu Note Added: 68732
2022-03-18 18:27 DenisChenu Relationship added related to 17974
2022-03-18 18:27 DenisChenu Assigned To DenisChenu => galads
2022-03-18 18:27 DenisChenu Status assigned => ready for testing
2022-03-28 12:21 DenisChenu Changeset attached => LimeSurvey 3.x-LTS 4a18d7b1
2022-03-28 12:21 DenisChenu Note Added: 68809
2022-03-28 12:21 DenisChenu Assigned To galads => DenisChenu
2022-03-28 12:21 DenisChenu Resolution open => fixed
2022-03-30 11:56 DenisChenu Changeset attached => LimeSurvey master d011c173
2022-03-30 11:56 DenisChenu Note Added: 68830
2022-04-01 09:57 galads Zoho Project Synchronization Yes =>
2022-04-04 10:09 LimeBot Note Added: 68865
2022-04-04 10:09 LimeBot Status ready for testing => closed
2022-04-04 10:09 LimeBot Bug heat 4 => 6