Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 70263

Use it for questions about the Form API. Don't use it for entity or entity field forms.

4 votes
2 answers
4k views

How to add rows to a form table with AJAX Callback in Drupal 8

I try to implement a button to add rows to a form table. Each clic on the button should add a new line. My problem is that my modifications in the AJAX Callback doesn't seem to modify the actual $for …
user70263's user avatar
1 vote

AJAX button on table rows to delete rows

I had the same issue with drupal 8. The issue occured when several buttons/submits shared the same "#value". Drupal doesn't seem to handle the callbacks correctly in this case. For me, the solution …
user70263's user avatar
1 vote
1 answer
1k views

Interactions between a form and a modal form

I need to help the user to fill a set of fields in a content type form, this way : The users start to fill one of the concerned fields: They click on a button that will open a modal form. The modal f …
user70263's user avatar
0 votes

How to add rows to a form table with AJAX Callback in Drupal 8

I managed this by detecting each click and setting a click counter in a hidden element of the form. Everything is done in the buildForm, the callback function simply returns the form element to refre …
user70263's user avatar