I’m trying to create a new custom registration but not same the original one and i need to set Dob & Gender as required fields. <?php $ _dob = $ block->getLayout()->createBlock(\Magento\Customer\Block\Widget\Dob::class) ?> <?php echo $ _dob->setDate($ block->getFormData()->getDob())->toHtml() ?> <?php $ _gender = $ block->getLayout()->createBlock(\Magento\Customer\Block\Widget\Gender::class) ?> <?php echo $ _gender->setGender($ block->getFormData()->getGender())->toHtml() ?> ThanksRead more