We have built a form that allows unlimited values for a field. Upon clicking the "add another item" to add another value for the field, the entire content type form is submitted through the AJAX request instead of just adding another value for that specific field.

We are getting this error in the database log:
Notice: Undefined index: #ajax in ajax_form_callback() (line 397 of /home/~/public_html/includes/ajax.inc).

When the "add another item" button is pressed, the AJAX script returns the following:
[{"command":"settings","settings":{"basePath":"\/","pathPrefix":"","ajaxPageState":{"theme":"lgride","theme_token":"p1t95kLxWozJwKKvOlyjTAJb85CKZRKh0M11QZBjKlc"}},"merge":true}]

It is not specific to one content type. Help please?!

Similar to this issue (but not for any custom coded forms or elements): https://www.drupal.org/node/1346626

Comments

tesmondh created an issue. See original summary.

tesmondh’s picture

Issue summary: View changes
cilefen’s picture

Priority: Major » Normal

What do you mean by "we have built a form"? Did you write code? If so, may we see the code?

tesmondh’s picture

No it's just a content type. Nothing custom.

cilefen’s picture

ok

tesmondh’s picture

Status: Active » Fixed

Thanks for the help! I got it fixed.

Status: Fixed » Closed (fixed)

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