I have a profile content type with an infinite repeating text field. It is not required. If it is visible on the registration form, I can submit my registration. If it is marked as hidden (under content profile tab), it does not show up on the form, but I get a validation error when submitting the form: "My Repeating Text Field: Illegal value".

I created a small module to remove the repeating field from the registration form using hook_form_alter. With that module active, I was able to successfully submit the registration form.

Comments

oligoelemento’s picture

I use Validation API to validate form fields in profile content types and it doesn't work during registration but it works correctly when I edit the content later.

Perhaps your problem is that you need to assign validation also for blank text fields in repeating text fields (sometimes one of these fields is left in blank).

For example, I use this regular expression to validate spanish phone numbers: /^(|\s+|\D*[69]\d{2}\D*\d{3}\D*\d{3}\D*)$/
I allow to leave fields in blank or with blank spaces, if you need at least one value for one of the multiple fields try to use PHP code to validate the fields.

fago’s picture

Status: Active » Postponed (maintainer needs more info)

Is the problem still there with the beta3?

fago’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Closing old issue, please reopen if the problem persists.