I am using magento 2.1.0, I created custom attribute of customer, and add field on frontend in customer edit information form.
when I entered any value in edit form, it is saved in adimn form but not visible on frontend. means data is not retrieve on frontend.
so how to retrieve that data to show on frontend in this field:
<div class="field bloodgroup">
<label for="bloodgroup" class="label"><span><?php /* @escapeNotVerified */echo __('Blood Group') ?></span></label>
<select name="bloodgroup" id="bloodgroup">
<?php
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$model = $objectManager->create('\xxx\xxx\Model\BGroup')->avialable();
foreach ($model as $b)
{
?>
<option value="<?php echo $b['BloodGroup']; ?>"><?php echo $b['BloodGroup']; ?></option>
<?php } ?>
</select>
</div>