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
Comment #2
tesmondh commentedComment #3
cilefen commentedWhat do you mean by "we have built a form"? Did you write code? If so, may we see the code?
Comment #4
tesmondh commentedNo it's just a content type. Nothing custom.
Comment #5
cilefen commentedok
Comment #6
idebr commentedI ran into a similar problem. #2546700-6: Add support for detecting the triggering element when buttons are changed client-side fixed it for me
Comment #7
tesmondh commentedThanks for the help! I got it fixed.