No Code Attached Yet bug
avatar ceford
ceford
8 Sep 2025

Create a number field. Go to an Article edit form. In the Fields tab, hover over the number field you created. The label says Please select a value no less than 1.. That is incorrect as you can enter negative values - quite useful for a collection of articles on the physical properties of gasses. The boiling point of Argon could be expressed as -185.85C.

avatar ceford ceford - open - 8 Sep 2025
avatar ceford ceford - change - 8 Sep 2025
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 8 Sep 2025
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 8 Sep 2025
avatar Fedik Fedik - change - 8 Sep 2025
Labels Added: bug
avatar Fedik Fedik - labeled - 8 Sep 2025
avatar brianteeman
brianteeman - comment - 9 Sep 2025

Doesnt help but that text string is coming directly from the browser and not Joomla.

avatar brianteeman
brianteeman - comment - 9 Sep 2025

The message is a form validation message generated by the browser based on the min max values for the input

If you do NOT specify a min value in the field then the code generated will still have a min value of 1 - hence the message

If however you set the min value as -200 in the field then the code generated will have a min value of -200 and the message will change to reflect that

Image Image
avatar brianteeman
brianteeman - comment - 9 Sep 2025

[note for anyone looking at this the message is a validation error message so you will only see it if you enter a numeric value outside of the min-max range for the field]

avatar ceford
ceford - comment - 9 Sep 2025

After adjusting the Plugin settings I now see a hover message that says Please select a valid value. The two nearest valid values are -186 and -185. This is for a field set to -185.85. And if you enter 10e3 and save you get back 10000.

Worse, if you have a real number set, such as -185.85, you can lose it by touching the increment/decrement buttons. It seems to be a bad idea to provide increment/decrement steps on a real number.

The PR that created the Number field was #43974

avatar brianteeman
brianteeman - comment - 9 Sep 2025

yes increment values are a bad idea for your use case.

If you dont want them then use a text field with the appropriate filter

avatar ceford
ceford - comment - 9 Sep 2025

I came across this problem whilst revising the Documentation for Joomla 6 and I am wondering what we might tell our audience!

avatar brianteeman
brianteeman - comment - 10 Sep 2025

No idea but there is no bug

avatar ceford ceford - change - 10 Sep 2025
Status New Closed
Closed_Date 0000-00-00 00:00:00 2025-09-10 12:23:08
Closed_By ceford
avatar ceford ceford - close - 10 Sep 2025
avatar ceford
ceford - comment - 10 Sep 2025

No idea but there is no bug

Thanks for your input on this. It seems to me the Number field does not do anything you can't do with a text field. However, I have updated interim user documentation here: https://jdocmanual.org/en/jdocmanual?article=user/fields/adding-custom-fields-number-field - we are not putting anything in MediaWiki just now, amongst other things its image handling is broken.

Add a Comment

Login with GitHub to post a comment