How to save hidden field value which is present in form in Database in magento 2 I have overrides the review form as popup modal. I have removed the validation for nickname field and make nick name as hidden field, Now i need to get the customer name who logged in and set that customer name in that hidden field. And also need to save the customer name in DB while form submitting, Please provide me a solution.
form.phtml
<div class="field review-field-nickname required"> <div class="control"> <input type="hidden" name="nickname" placeholder="<?= $ block->escapeHtml(__('Your Name')) ?>" id="nickname_field" class="input-text" data-validate="{required:true}" data-bind="value: nickname()" /> </div> </div>
The above one is the hidden field which refers Magento\Review\Block\Form, Now I need to get the current login user name in this hidden field, Please provide the solution