I have a Flexible Content field called “Content Blocks” for adding different types of content blocks, e.g. Paragraph, Photo Gallery, Form, etc. Inside the Form layout is another Flexible Content field called “Form Fields” for adding fields, e.g. First Name, Last Name, Email, Comments. When a new Form layout is added, I want the “Form Fields” flexible content field to automatically have the First Name and Email fields added.
The ID of the flex field is field_5f6de18aefdd9. This is my code that’s not working: