Rob Steinhilber Rob Steinhilber - 1 year ago 89
JSON Question

Unable to POST to custom user registration field Services 3.0 Drupal

When trying to post to my custom zip code field on user registration form it get the following:

post data to endpoint/user/register.json

"und": {
"0": {
"postal": {


"form_errors": {
"field_zip_code][und][0][postal": "Postal Code field is required."

If make the zip code field not required - the post is successful (user is created) but zip is not entered. Seems like the field is missing the start and end brackets - not sure if that is relevant.

See screenshot for the form data that i believe i matched with the post:

Any help is appreciated.

Answer Source
  "field_zip_code":{"und": [{"postal": "11111"}]}

was the correct format.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download