The check introduced in #1987996: Add check for house nummer addition often produces an invalid form error. Breaking the registration process for my users.
I can supply at least one postcode which causes the failure in a private message.

Comments

lmeurs’s picture

I am experiencing problems too. In my situation the following error message is displayed on any AJAX call on the form:

An illegal choice has been detected. Please contact the site administrator.

The cause might be that options in the 'huisnummer addition' select list are altered client side by $.fn.NlPostcode_injectValues, on AJAX calls Drupal does not know of the existence of the newly set options. I think the select list should be composed server side and inserted into the form using AJAX.

Hopefully in the near future I have more time to investigate on this, but have to make a deadline first!

legolasbo’s picture

@lmeurs during a quick attempt to solve the problem i've also encountered this clientside injection which seemed odd to me at the time given form api's ajax support.

sportel’s picture

I'm having the same problem.

jeisses’s picture

I also have this problem. Does anyone have a fix to get around the validation error?

legolasbo’s picture

You can work around this issue by installing Alpha 2 instead of alpha 3.

frans’s picture

Assigned: Unassigned » frans

Bug confirmed.
For now use alpha2; fix is comming (some day :))

  • Commit 332e1a1 on 7.x-1.x by Frans:
    Fix #2159767 - House number addition check fails.
    
frans’s picture

Status: Active » Fixed

Fixed in 7.x-1.0-beta4

Although it is a fix, the module needs to be rewritten to fix it better. The house number addition textfield is changed with JS to a select. That should be done in a form rebuild.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.