I have a field named field_page_schedule which relates to an entity reference paragraph field and the paragraph has two fields named field_start_date_and_time & field_end_date_and_time. I need to get the paragraphs values in the hook_node_form_alter.

How do I get those values?

  • 2
    Paragraphs are built in subforms. If you want to have the two values in the main form then better use the DateTime Range field. Or is this not form specific? Then tell more why you want to get the values or show the code you have so far. – 4k4 Nov 26 '18 at 7:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.