- πΊπΈUnited States ndewhurst USA
@stijndmd yes, this is possible. Here's an example where a field within a paragraph IEF is displayed based on the value of a field from the parent form. Your specific form structure will vary, so have a look at the parents array and the name of the controlling field.
function mymodule_inline_entity_form_entity_form_alter(&$entity_form, &$form_state) { if ($entity_form['#entity_type'] === 'paragraph' && $entity_form['#bundle'] === 'my_paragraph_type') { if ($entity_form['#array_parents'][0] === 'field_my_parent_field' && is_numeric($entity_form['#array_parents'][2])) { $parent_field_delta = $entity_form['#array_parents'][2]; $entity_form['my_conditional_field']['widget']['value']['#states'] = [ 'visible' => [ ":input[name=\"field_my_parent_field[$parent_field_delta][subform][my_controlling_field][value]\"]" => ['checked' => TRUE] ], ]; } } }