Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
Through an ajax callback triggered by a form element, I'd like to populate a textfield widget with unlimited cardinality. The number of textfields in the widget and their values varies based on the triggering element value. The situation is an ingredients list based on the entered product code. The user should be able to alter the generated list before submitting the form. I couldn't figure out how to change the amount of textfield elements in the widget without the changes getting lost after the callback.
I use Drupal 8.5, initial installation was in English, but I want the site in German so I followed the steps described here: https://www.drupal.org/docs/8/multilingual/install-a-language and installed German and changed the default language to German.
My only problem now is that Drupal keeps adding /de/ in the URLs but I don't want this.