Approaches for multi-field values

Drupal Answers Asked by Ian Stewart on October 26, 2021

I am using the Drupal 8 REST API to post content to a custom content type. I have a use case in which I need to post multiple values to a single multi-value field. If someone can show me how to do this it would negate my question.

As an alternative, I believe I could use the Paragraphs module to create a fieldset within my content type. I am writing to ask if someone can give me an example of how to post (or patch) my multiple values to the paragraph fieldset.

I should add that I do not know in advance how many values I will have in my multi-value dataset; it will vary by node. Its for that reason that I think either a multi-value field or a paragraphs fieldset might suit better than just creating additional fields in the content type.

Add your own answers!

Related Questions

Undefined function in module

0  Asked on December 19, 2021 by idjit


How to get group id from custom url

1  Asked on December 17, 2021 by leopathu


Some fields are not sorting properly in view

1  Asked on December 17, 2021 by weblink


Drush Hangs on wget but wget Works

1  Asked on December 14, 2021 by marshmellow1328


How to get menu title inside menu–main.html.twig file

1  Asked on December 14, 2021 by siddiq


hook_form_alter add field after submit button to exposed view

1  Asked on December 14, 2021 by user7355700


Images uploaded with CKeditor disappear after cron run

1  Asked on December 12, 2021 by alexander-kim


How have multiple instances of a Custom Block?

2  Asked on December 10, 2021 by jagmitg


Node view mode in page template suggestions

1  Asked on December 10, 2021 by sarah-c


How to sort translation under Translate tab?

1  Asked on December 10, 2021


Migration with default values in the yml file

1  Asked on December 10, 2021 by webuser57


menu_get_active_trail returns page not found

1  Asked on December 8, 2021 by jurgenr


hook_field_formatter_view does not get called

1  Asked on December 8, 2021 by alexei-rayu


Ask a Question

Get help from others!

© 2023 All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP