No Code Attached Yet bug
avatar shawnhy
shawnhy
10 Feb 2020

Steps to reproduce the issue

  1. Create a custom field Group
  2. Create a custom field. and choose type "Integer"; Required: NO. Assign to all article categories.
  3. Create an article. Try not input value to this integer type field.

Expected result

Leaving the field blank should be allowed. The field There should be an "x" mark in the field to cancel inputed value.

Actual result

User is forced to select an integer from list, or the first in list.

System information (as much as possible)

Joomla! 3.9.15
php 7.3

Additional comments

avatar shawnhy shawnhy - open - 10 Feb 2020
avatar joomla-cms-bot joomla-cms-bot - labeled - 10 Feb 2020
avatar chmst
chmst - comment - 10 Feb 2020

If you have a field of type integer, then an integer is expected.
Can ou use a text field or a select list with integers or space or other values?


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27877.
avatar mbabker
mbabker - comment - 10 Feb 2020

If you have a field of type integer, then an integer is expected.

Right, when the field has a value inside of it. If a field is not marked as a required field, then it should be possible to submit an empty value and it pass validation.

avatar jwaisner jwaisner - change - 10 Feb 2020
Status New Confirmed
avatar jwaisner
jwaisner - comment - 10 Feb 2020

Confirmed this occurs on the Staging branch as well as 4.0dev.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27877.

avatar chmst
chmst - comment - 11 Feb 2020

In my opinion this is expected behaviour for a field type="integer".
It is more a feature request, as there are other field types, i.e. "number" or usage of filter="integer" or rule="numeric" or select lists which can be used for a mixed input.

avatar mbabker
mbabker - comment - 11 Feb 2020

Sorry @chmst but your expected behavior is incorrect. For any supported field type (like the “url”, “tel”, “number”, and “email” inputs in HTML5 or any field type in Joomla which translates to an HTML <select> element), if the field is NOT marked as a required field, then it MUST be possible to submit an empty field and that submission pass validation. It is bad system design if choosing a field type is forcing a user to enter a value for an optional field to pass some kind of input validation.

avatar chmst
chmst - comment - 11 Feb 2020

So I used it since years in my extensions and did not see it as an issue :). But I understand your point.

avatar Hackwar Hackwar - change - 21 Feb 2023
Labels Added: No Code Attached Yet bug
Removed: ?
avatar Hackwar Hackwar - labeled - 21 Feb 2023
avatar keep
keep - comment - 27 Nov 2023

Confirmed this occurs on 5.0.0

avatar Fedik
Fedik - comment - 27 Nov 2023

This issue have 2 parts, a bug and feature request.

The bug:

The integer field has a misleading name, more accurate would be call it "Integers List"
https://docs.joomla.org/Integer_form_field_type :

The integer form field type provides a select box with a range of integer values.

Feature request:

To allow free input of integer/float values it is need to implement a plugin for Number field:
https://docs.joomla.org/Number_form_field_type
This field represent HTML5 <input type="number"> input

avatar Fedik Fedik - change - 27 Nov 2023
Labels Added: Feature
avatar Fedik Fedik - labeled - 27 Nov 2023
avatar Fedik Fedik - change - 27 Nov 2023
Labels Removed: Feature
avatar Fedik Fedik - unlabeled - 27 Nov 2023
avatar brianteeman
brianteeman - comment - 27 Nov 2023

bug: agree on the rename

Feature: already exists
image

avatar Fedik
Fedik - comment - 27 Nov 2023

Feature: already exists

Thanks for the note, I did not seen it :)

Add a Comment

Login with GitHub to post a comment