diff --git a/src/Element/Registrants.php b/src/Element/Registrants.php index b087c5a..12b7f5f 100644 --- a/src/Element/Registrants.php +++ b/src/Element/Registrants.php @@ -127,6 +127,10 @@ public static function processIdentityElement(array &$element, FormStateInterfac $arity_is_multiple = $utility->getArity() === 'multiple'; $arity_is_single = !$arity_is_multiple; $change_it = $utility->getChangeIt(); + if(count($for_bundles) == 1){ + // Show the form directly if it's single persond and only one bundle: + $utility->setShowCreateEntitySubform(TRUE); + } $entity_create_form = $utility->getShowCreateEntitySubform(); if (!$change_it) {