Dear Community Builder Support,I am running
Community Builder 2.4.6 + build 2020‑09‑16 (e1fa0e483) on Joomla 3.10.x.
For one of my registration fields (type
Text; name/id
) I need to validate mobile numbers with the pattern:
What I did
- Field Manager → cb_ue_cbtel → Validation tab
- Set Validation Rule to Pattern (RegExp)
- Entered the pattern above (no quotes, no spaces)
- Saved the field and cleared Joomla & browser cache
Result
- The input keeps showing the default error message
“Format: + and 11‑15 digits …”
even for correct values like
or
.
- In the browser console I verified:
Code:
typeof cbjQuery.validator.methods.pattern // ⇒ "function" cbjQuery('#cb_ue_cbtel').attr('data-rule-pattern'); // ⇒ undefined
is
not output in the final
element, so jQuery‑Validate never receives the rule. The same happens if I switch the rule to
Custom REGEXP Validation.Other CB fields that use built‑in rules (e‑mail, required, etc.) are rendered correctly on the same page.Tried already
- Disabled the WYSIWYG editor (“None”) to avoid hidden characters
- Re‑saved the expression several times, copy‑pasting plain text
- Cleared Joomla cache, browser cache, tried Incognito mode
- Confirmed that no JS errors are thrown except unrelated extensions
QuestionIs this a known issue in CB 2.4.6?
Could you confirm whether
Pattern (RegExp) should still render a
attribute in this version, or has the syntax/field name changed?Any advice on how to make a custom regular‑expression validation work (or a patched file) would be greatly appreciated.Thank you for your time.Best regards,