I want to add custom field in Customer admin and i need to process some operations but those operations should not to save in database.
I am following this tutorial https://webkul.com/blog/tab-with-form-in-admin-customer-edit-magento-2-0/
But not able to figure it out. i don't know how to get that data ?. Also in this code while initialise $this->initForm();
data is not posted from this form.
Also not able to figure it out where $rowcom
is coming from .
Any help would be helpful .
Best Answer
Just change class following way:
Make sure namespace match your module.
After that you can able to get this field value by
I have test this M2.2
[Update]
Create a plugin for getting data during save.
VendorName/ModuleName/etc/adminhtml/di.xml
VendorName/ModuleName/Plugin/Customer/Controller/Adminhtml/Index/Save.php