Number Field & Require Option

Permalink Browser Info Environment
Hi there -

Is anyone else having problems with the Number field type and whether or not it's required. The other field types seem to work correctly. With the Number field type, it seems to ignore the Required setting. It requires an entry even when I have the "Required" option set to No.

Additionally, it's also not showing an indicator that it's required when I have it set to required.

Mike

Type: Discussion
Status: New
mikewaz
View Replies:
jgarcia replied on at Permalink Reply
jgarcia
Currently, when the form is processed, it validates any number fields and if it's not a number, it returns the error you are seeing - so it kind of is a required field even if you don't set it as required. The email field works in a similar way.

However, I do see the benefit of not doing it that - essentially it only tries to validate the field if either it's filled out, or if it's required. I'll add that change to the roadmap.

Regarding the required indicator - I don't see any issues on that. When I make a number field required, it does indeed show the required indicator.
mikewaz replied on at Permalink Reply
mikewaz
Thanks for the quick response and explanation. For the time being, I've switched the Number field types to text with limited characters.

You're right about that the Required indicator. It's working properly. Sorry about that.

Overall Advance Forms is working well. I appreciate the time and effort you put into it.
jgarcia replied on at Permalink Reply
jgarcia
Good to hear. Hopefully that will work for you for now.
hursey013 replied on at Permalink Reply
hursey013
Same issue - I don't think this is apparent at first. I ended up switching it to a regular text field too, but it would be nice to have an integer only field that will work if nothing is entered in.
jgarcia replied on at Permalink Reply
jgarcia
Hey guys - just FYI - this has been fixed in the most recent version (1.3.4). Number/email fields are allowed to be submitted blank if they are not required. But if they are required, then it does validate the data.

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.