Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

in customize profile, field not required doesn't check its length

10 years 11 months ago
Licenses:
JomSocial Expired Socialize Expired

Hi,
Joomla v3.3.0, JomSocial v3.2.0.5, Socialize v1.2.7.
We've defined in custom profile a field for mobile phone, see the attached file.
We'e limited the amount of chars to 10 for min & max, users must enter 10 numbers.
If we set this field as required, it works fine, users have to enter the 10 chars, if less or more then they've got error message.
That's fine.
If we set this field as not required, user can enter less or more than 10 chars, no errors displayed and the wrong stuff is stored in the field.
In both cases we should get the error.
Cheers,
L

Attachments:
10 years 11 months ago
Licenses:

Hi.

This will work that way: field values are checked only if they are mark as REQUIRED.
Limitation for maximum characters works. But not for minimum as system not check this field at all... if it's not required.

It works like this:

1. Field is not required:
- you can enter only limited number of characters = 10
- but also you may decide to not fill that field at all so numbers of characters is = 0
and 0 < 10 so you can't leave it empty... but field is not required... so you can.

Conclusion: if field is not required minimum characters limitation MUST be ignored.
If system will not ignored it then "not required" is not true.

2. Field is required:
- you can't enter more that 10 characters
- if you enters 0 or less than 10 characters = 0 < 10 or 10-x < 0
- field is checked so you can't leave it empty or with less than 10 characters.

I hope I cleared it fair enough.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
10 years 11 months ago
Licenses:
JomSocial Expired Socialize Expired

yes it's clear. Thank you for your lights
Cheers,
L

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW