Adding field input to a field


Sounds like you want Paragraphs or Field Collection.

Basically, the idea with these modules is to group two fields (office + address) as a set within an entity and then embed that entity in your content type.

For Drupal 8, Field Collection recommends using Paragraphs, so that's the module I would use. For Drupal , I would use Field Collection.

Tags: Drupal 8 / Entities

Similar questions

Adding a variable on an input in webform
I tried using jQuery, and it adds the title as I instruct, but it doesn't add it to the SOURCE CODE. I am trying to obtain something similar to what shown in this page: Calculating Order Form Totals. It asks me to add onChange="CalculateTotal(this.form)" to the inputs I want to calculate, but using jQuery in this manner is not doing the job.
Adding Form Elements to a node for user input in drupal 7
I have my own content type made in my module. It has text and image fields. I now want to add a form fields like radio box and a submit button so that when the node is rendered the user can give their input. I unable to do this. 1) My first try failed when I tried adding a radio box when creating my content type. What do I write in the type field b...
Adding a bulk discount to ubercart without adding a new module
I have multiple sites using the same ubercart module. One of the sites has a new discount that I need to add. If you buy 25 or more you get a 25% discount, if you buy 100 or more you get a 35% discount for example. I don't want to add a new module to ubercart as I don't want to mess with everything that's already working. Plus it's just this one di...
Adding a stock while adding a product
How can I add stocks in Ubercart while adding products? I insert a new field in the product setting. How can I link the stock with the product?
Adding a views block to a menu? Or adding a menu to a views block?
I need to create a dropdown menu which consists of the menu items and also a views block of recent nodes. Yes this is technically a megamenu, but how would one build it without a megamenu using only menus and views only? How do you make a views show up inside a menu? I'd imagine you would need an extra module for it. But if you built a views block ...
Adding PHP code to Drupal Page for adding Javascript
I am trying to add some JavaScript to a Drupal Page to open a link in a popup without address bar etc. I have since learned that you can't just embed JS in the "Full HTML" view. (script tag gets commented out with HTML comments) So I have used the PHP mode of entry using the PHP function drupal_add_js(), but the php code gets commented out with HTM...

Also ask

We use cookies to deliver the best possible experience on our website. By continuing to use this site, accepting or closing this box, you consent to our use of cookies. To learn more, visit our privacy policy.