How to use getFieldset for customer in magento2?validating is_unique property for custom attribute in...
Transpose a matrix and parenthesis
Cat is tipping over bed-side lamps during the night
What are "industrial chops"?
Can a hotel cancel a confirmed reservation?
Can a person refuse a presidential pardon?
How much mayhem could I cause as a sentient fish?
In Linux what happens if 1000 files in a directory are moved to another location while another 300 files were added to the source directory?
Why did Luke use his left hand to shoot?
Difference between i++ and (i)++ in C
Using only 1s, make 29 with the minimum number of digits
How long is the DnD Starter Set campaign?
A starship is travelling at 0.9c and collides with a small rock. Will it leave a clean hole through, or will more happen?
Eww, those bytes are gross
Why zero tolerance on nudity in space?
Traveling through the asteriod belt?
What incentives do banks have to gather up loans into pools (backed by Ginnie Mae)and selling them?
Advice for a new journal editor
Dilemma of explaining to interviewer that he is the reason for declining second interview
If I delete my router's history can my ISP still provide it to my parents?
Can I string the DnD Starter Set campaign into another module, keeping the same characters?
Why do stocks necessarily drop during a recession?
Why is Agricola named as such?
How did Ancient Greek 'πυρ' become English 'fire?'
Looking for access to original paper for Category O
How to use getFieldset for customer in magento2?
validating is_unique property for custom attribute in customer registration formhow do save customer session in magento2?How to use AWS CloudFront for Magento2?Magento 2: How to override newsletter Subscriber modelMagento 2 Add new field to Magento_User admin formHow i can use in href, customer edit url?How to use extension attributes for customer EAV attributes?How to get All customer Data using Object Manager : Magento2Magento2 how to add tooltip for input form in frontend template?Magento 2 How to disable price from orders, customer account and order view if custom module is enabled?
I have used below code in magento1 to get customer attributes.
$customerAccount = Mage::getConfig()->getFieldset('customer_account');
foreach ($customerAccount as $code => $node) {
if ($node->is('name')) {
$fields[$code] = $code;
}
}
How the same code can be used in m2?
Please anyone suggest me on this.
here is my full action method of m1.
public function createPostAction()
{
if (!$this->_getSession()->isLoggedIn()) {
$this->_redirect('customer/account/login');
return;
}
$this->_getSession()->setEscapeMessages(true);
if ($this->getRequest()->isPost()) {
$errors = array();
$user = Mage::getModel('customer/customer')->setId(null);
$master = Mage::getSingleton('customer/customer')->load($this->_getSession()->getCustomer()->getMasterId());
$data = $this->getRequest()->getPost();
$defaultFields = array();
foreach (Mage::getConfig()->getFieldset('customer_account') as $code=>$node) {
$defaultFields[] = $code;
if ($node->is('create') && isset($data[$code])) {
if ($code == 'email') {
$data[$code] = trim($data[$code]);
}
$user->setData($code, $data[$code]);
}
}
foreach ($this->_getSharedFields() as $_att) {
$user->setData($_att, $master->getData($_att));
}
try {
$validationUser = $user->validate();
if (is_array($validationUser)) {
$errors = array_merge($validationUser, $errors);
}
$validationResult = count($errors) == 0;
if (true === $validationResult) {
$user->save();
foreach ($this->_getSharedFields() as $_att) {
$user->setData($_att, $master->getData($_att));
}
$user->save();
$message = $this->__('User was successfully created');
$this->_getSession()->addSuccess($message);
$this->sendNewSubUserAccountEmail($user);
$this->_redirect('*/*/list');
return;
} else {
$this->_getSession()->setCustomerFormData($this->getRequest()->getPost());
if (is_array($errors)) {
foreach ($errors as $errorMessage) {
$this->_getSession()->addError($errorMessage);
}
}
else {
$this->_getSession()->addError($this->__('Invalid user data'));
}
}
}
catch (Mage_Core_Exception $e) {
$this->_getSession()->setCustomerFormData($this->getRequest()->getPost());
if ($e->getCode() === Mage_Customer_Model_Customer::EXCEPTION_EMAIL_EXISTS) {
$url = Mage::getUrl('customer/account/forgotpassword');
$message = $this->__('There is already an account with this emails address. If you are sure that it is your email address, <a href="%s">click here</a> to get the password and access your account.', $url);
$this->_getSession()->setEscapeMessages(false);
}
else {
$message = $e->getMessage();
}
$this->_getSession()->addError($message);
}
catch (Exception $e) {
$this->_getSession()->setCustomerFormData($this->getRequest()->getPost())
->addException($e, $this->__('Can't save user'));
}
}
$this->_redirectError(Mage::getUrl('*/*/new', array('_secure' => true)));
}
I am looking for code in magento2 for below one
$user = Mage::getModel('customer/customer')->setId(null);
How this can be used in magento2?
magento2 customer fieldsets
add a comment |
I have used below code in magento1 to get customer attributes.
$customerAccount = Mage::getConfig()->getFieldset('customer_account');
foreach ($customerAccount as $code => $node) {
if ($node->is('name')) {
$fields[$code] = $code;
}
}
How the same code can be used in m2?
Please anyone suggest me on this.
here is my full action method of m1.
public function createPostAction()
{
if (!$this->_getSession()->isLoggedIn()) {
$this->_redirect('customer/account/login');
return;
}
$this->_getSession()->setEscapeMessages(true);
if ($this->getRequest()->isPost()) {
$errors = array();
$user = Mage::getModel('customer/customer')->setId(null);
$master = Mage::getSingleton('customer/customer')->load($this->_getSession()->getCustomer()->getMasterId());
$data = $this->getRequest()->getPost();
$defaultFields = array();
foreach (Mage::getConfig()->getFieldset('customer_account') as $code=>$node) {
$defaultFields[] = $code;
if ($node->is('create') && isset($data[$code])) {
if ($code == 'email') {
$data[$code] = trim($data[$code]);
}
$user->setData($code, $data[$code]);
}
}
foreach ($this->_getSharedFields() as $_att) {
$user->setData($_att, $master->getData($_att));
}
try {
$validationUser = $user->validate();
if (is_array($validationUser)) {
$errors = array_merge($validationUser, $errors);
}
$validationResult = count($errors) == 0;
if (true === $validationResult) {
$user->save();
foreach ($this->_getSharedFields() as $_att) {
$user->setData($_att, $master->getData($_att));
}
$user->save();
$message = $this->__('User was successfully created');
$this->_getSession()->addSuccess($message);
$this->sendNewSubUserAccountEmail($user);
$this->_redirect('*/*/list');
return;
} else {
$this->_getSession()->setCustomerFormData($this->getRequest()->getPost());
if (is_array($errors)) {
foreach ($errors as $errorMessage) {
$this->_getSession()->addError($errorMessage);
}
}
else {
$this->_getSession()->addError($this->__('Invalid user data'));
}
}
}
catch (Mage_Core_Exception $e) {
$this->_getSession()->setCustomerFormData($this->getRequest()->getPost());
if ($e->getCode() === Mage_Customer_Model_Customer::EXCEPTION_EMAIL_EXISTS) {
$url = Mage::getUrl('customer/account/forgotpassword');
$message = $this->__('There is already an account with this emails address. If you are sure that it is your email address, <a href="%s">click here</a> to get the password and access your account.', $url);
$this->_getSession()->setEscapeMessages(false);
}
else {
$message = $e->getMessage();
}
$this->_getSession()->addError($message);
}
catch (Exception $e) {
$this->_getSession()->setCustomerFormData($this->getRequest()->getPost())
->addException($e, $this->__('Can't save user'));
}
}
$this->_redirectError(Mage::getUrl('*/*/new', array('_secure' => true)));
}
I am looking for code in magento2 for below one
$user = Mage::getModel('customer/customer')->setId(null);
How this can be used in magento2?
magento2 customer fieldsets
Are you working on custom module or change in core function?
– Suresh Chikani
Aug 6 '18 at 13:21
working on custom module
– jafar pinjar
Aug 6 '18 at 13:29
what is it's propose of setId as null?
– Suresh Chikani
Aug 6 '18 at 13:31
Actually exact requirement is From Account dashboard, I have added user account link, where user can add sub user. For that i have created the form once form submits, new user is created with parent user
– jafar pinjar
Aug 6 '18 at 13:34
could you check what is the issue?
– jafar pinjar
Aug 6 '18 at 15:00
add a comment |
I have used below code in magento1 to get customer attributes.
$customerAccount = Mage::getConfig()->getFieldset('customer_account');
foreach ($customerAccount as $code => $node) {
if ($node->is('name')) {
$fields[$code] = $code;
}
}
How the same code can be used in m2?
Please anyone suggest me on this.
here is my full action method of m1.
public function createPostAction()
{
if (!$this->_getSession()->isLoggedIn()) {
$this->_redirect('customer/account/login');
return;
}
$this->_getSession()->setEscapeMessages(true);
if ($this->getRequest()->isPost()) {
$errors = array();
$user = Mage::getModel('customer/customer')->setId(null);
$master = Mage::getSingleton('customer/customer')->load($this->_getSession()->getCustomer()->getMasterId());
$data = $this->getRequest()->getPost();
$defaultFields = array();
foreach (Mage::getConfig()->getFieldset('customer_account') as $code=>$node) {
$defaultFields[] = $code;
if ($node->is('create') && isset($data[$code])) {
if ($code == 'email') {
$data[$code] = trim($data[$code]);
}
$user->setData($code, $data[$code]);
}
}
foreach ($this->_getSharedFields() as $_att) {
$user->setData($_att, $master->getData($_att));
}
try {
$validationUser = $user->validate();
if (is_array($validationUser)) {
$errors = array_merge($validationUser, $errors);
}
$validationResult = count($errors) == 0;
if (true === $validationResult) {
$user->save();
foreach ($this->_getSharedFields() as $_att) {
$user->setData($_att, $master->getData($_att));
}
$user->save();
$message = $this->__('User was successfully created');
$this->_getSession()->addSuccess($message);
$this->sendNewSubUserAccountEmail($user);
$this->_redirect('*/*/list');
return;
} else {
$this->_getSession()->setCustomerFormData($this->getRequest()->getPost());
if (is_array($errors)) {
foreach ($errors as $errorMessage) {
$this->_getSession()->addError($errorMessage);
}
}
else {
$this->_getSession()->addError($this->__('Invalid user data'));
}
}
}
catch (Mage_Core_Exception $e) {
$this->_getSession()->setCustomerFormData($this->getRequest()->getPost());
if ($e->getCode() === Mage_Customer_Model_Customer::EXCEPTION_EMAIL_EXISTS) {
$url = Mage::getUrl('customer/account/forgotpassword');
$message = $this->__('There is already an account with this emails address. If you are sure that it is your email address, <a href="%s">click here</a> to get the password and access your account.', $url);
$this->_getSession()->setEscapeMessages(false);
}
else {
$message = $e->getMessage();
}
$this->_getSession()->addError($message);
}
catch (Exception $e) {
$this->_getSession()->setCustomerFormData($this->getRequest()->getPost())
->addException($e, $this->__('Can't save user'));
}
}
$this->_redirectError(Mage::getUrl('*/*/new', array('_secure' => true)));
}
I am looking for code in magento2 for below one
$user = Mage::getModel('customer/customer')->setId(null);
How this can be used in magento2?
magento2 customer fieldsets
I have used below code in magento1 to get customer attributes.
$customerAccount = Mage::getConfig()->getFieldset('customer_account');
foreach ($customerAccount as $code => $node) {
if ($node->is('name')) {
$fields[$code] = $code;
}
}
How the same code can be used in m2?
Please anyone suggest me on this.
here is my full action method of m1.
public function createPostAction()
{
if (!$this->_getSession()->isLoggedIn()) {
$this->_redirect('customer/account/login');
return;
}
$this->_getSession()->setEscapeMessages(true);
if ($this->getRequest()->isPost()) {
$errors = array();
$user = Mage::getModel('customer/customer')->setId(null);
$master = Mage::getSingleton('customer/customer')->load($this->_getSession()->getCustomer()->getMasterId());
$data = $this->getRequest()->getPost();
$defaultFields = array();
foreach (Mage::getConfig()->getFieldset('customer_account') as $code=>$node) {
$defaultFields[] = $code;
if ($node->is('create') && isset($data[$code])) {
if ($code == 'email') {
$data[$code] = trim($data[$code]);
}
$user->setData($code, $data[$code]);
}
}
foreach ($this->_getSharedFields() as $_att) {
$user->setData($_att, $master->getData($_att));
}
try {
$validationUser = $user->validate();
if (is_array($validationUser)) {
$errors = array_merge($validationUser, $errors);
}
$validationResult = count($errors) == 0;
if (true === $validationResult) {
$user->save();
foreach ($this->_getSharedFields() as $_att) {
$user->setData($_att, $master->getData($_att));
}
$user->save();
$message = $this->__('User was successfully created');
$this->_getSession()->addSuccess($message);
$this->sendNewSubUserAccountEmail($user);
$this->_redirect('*/*/list');
return;
} else {
$this->_getSession()->setCustomerFormData($this->getRequest()->getPost());
if (is_array($errors)) {
foreach ($errors as $errorMessage) {
$this->_getSession()->addError($errorMessage);
}
}
else {
$this->_getSession()->addError($this->__('Invalid user data'));
}
}
}
catch (Mage_Core_Exception $e) {
$this->_getSession()->setCustomerFormData($this->getRequest()->getPost());
if ($e->getCode() === Mage_Customer_Model_Customer::EXCEPTION_EMAIL_EXISTS) {
$url = Mage::getUrl('customer/account/forgotpassword');
$message = $this->__('There is already an account with this emails address. If you are sure that it is your email address, <a href="%s">click here</a> to get the password and access your account.', $url);
$this->_getSession()->setEscapeMessages(false);
}
else {
$message = $e->getMessage();
}
$this->_getSession()->addError($message);
}
catch (Exception $e) {
$this->_getSession()->setCustomerFormData($this->getRequest()->getPost())
->addException($e, $this->__('Can't save user'));
}
}
$this->_redirectError(Mage::getUrl('*/*/new', array('_secure' => true)));
}
I am looking for code in magento2 for below one
$user = Mage::getModel('customer/customer')->setId(null);
How this can be used in magento2?
magento2 customer fieldsets
magento2 customer fieldsets
edited Aug 6 '18 at 7:34
jafar pinjar
asked Aug 6 '18 at 5:49
jafar pinjarjafar pinjar
651414
651414
Are you working on custom module or change in core function?
– Suresh Chikani
Aug 6 '18 at 13:21
working on custom module
– jafar pinjar
Aug 6 '18 at 13:29
what is it's propose of setId as null?
– Suresh Chikani
Aug 6 '18 at 13:31
Actually exact requirement is From Account dashboard, I have added user account link, where user can add sub user. For that i have created the form once form submits, new user is created with parent user
– jafar pinjar
Aug 6 '18 at 13:34
could you check what is the issue?
– jafar pinjar
Aug 6 '18 at 15:00
add a comment |
Are you working on custom module or change in core function?
– Suresh Chikani
Aug 6 '18 at 13:21
working on custom module
– jafar pinjar
Aug 6 '18 at 13:29
what is it's propose of setId as null?
– Suresh Chikani
Aug 6 '18 at 13:31
Actually exact requirement is From Account dashboard, I have added user account link, where user can add sub user. For that i have created the form once form submits, new user is created with parent user
– jafar pinjar
Aug 6 '18 at 13:34
could you check what is the issue?
– jafar pinjar
Aug 6 '18 at 15:00
Are you working on custom module or change in core function?
– Suresh Chikani
Aug 6 '18 at 13:21
Are you working on custom module or change in core function?
– Suresh Chikani
Aug 6 '18 at 13:21
working on custom module
– jafar pinjar
Aug 6 '18 at 13:29
working on custom module
– jafar pinjar
Aug 6 '18 at 13:29
what is it's propose of setId as null?
– Suresh Chikani
Aug 6 '18 at 13:31
what is it's propose of setId as null?
– Suresh Chikani
Aug 6 '18 at 13:31
Actually exact requirement is From Account dashboard, I have added user account link, where user can add sub user. For that i have created the form once form submits, new user is created with parent user
– jafar pinjar
Aug 6 '18 at 13:34
Actually exact requirement is From Account dashboard, I have added user account link, where user can add sub user. For that i have created the form once form submits, new user is created with parent user
– jafar pinjar
Aug 6 '18 at 13:34
could you check what is the issue?
– jafar pinjar
Aug 6 '18 at 15:00
could you check what is the issue?
– jafar pinjar
Aug 6 '18 at 15:00
add a comment |
2 Answers
2
active
oldest
votes
You can use below code for Magento-2
Add below dependency construct
protected $_fieldsetConfig;
public function __construct(
MagentoFrameworkDataObjectCopyConfig $fieldsetConfig
) {
$this->_fieldsetConfig = $fieldsetConfig;
}
Now you can get by below code
$customerAccount = $this->_fieldsetConfig->getFieldset('customer_account');
foreach ($customerAccount as $code => $node) {
if ($node->is('name')) {
$fields[$code] = $code;
}
}
Reference from Magento Model class :
vendor/magento/module-customer/Model/ResourceModel/Customer/Collection.php
getting Fatal error for $node->is('name');
– jafar pinjar
Aug 6 '18 at 13:38
can we use is here?
– jafar pinjar
Aug 6 '18 at 14:01
getting below error PHP Fatal error: Uncaught Error: Call to a member function is() on array .
– jafar pinjar
Aug 6 '18 at 16:01
add a comment |
for me it works like this:
$fieldset = $form->getElement('id_form');
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "479"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f237244%2fhow-to-use-getfieldset-for-customer-in-magento2%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can use below code for Magento-2
Add below dependency construct
protected $_fieldsetConfig;
public function __construct(
MagentoFrameworkDataObjectCopyConfig $fieldsetConfig
) {
$this->_fieldsetConfig = $fieldsetConfig;
}
Now you can get by below code
$customerAccount = $this->_fieldsetConfig->getFieldset('customer_account');
foreach ($customerAccount as $code => $node) {
if ($node->is('name')) {
$fields[$code] = $code;
}
}
Reference from Magento Model class :
vendor/magento/module-customer/Model/ResourceModel/Customer/Collection.php
getting Fatal error for $node->is('name');
– jafar pinjar
Aug 6 '18 at 13:38
can we use is here?
– jafar pinjar
Aug 6 '18 at 14:01
getting below error PHP Fatal error: Uncaught Error: Call to a member function is() on array .
– jafar pinjar
Aug 6 '18 at 16:01
add a comment |
You can use below code for Magento-2
Add below dependency construct
protected $_fieldsetConfig;
public function __construct(
MagentoFrameworkDataObjectCopyConfig $fieldsetConfig
) {
$this->_fieldsetConfig = $fieldsetConfig;
}
Now you can get by below code
$customerAccount = $this->_fieldsetConfig->getFieldset('customer_account');
foreach ($customerAccount as $code => $node) {
if ($node->is('name')) {
$fields[$code] = $code;
}
}
Reference from Magento Model class :
vendor/magento/module-customer/Model/ResourceModel/Customer/Collection.php
getting Fatal error for $node->is('name');
– jafar pinjar
Aug 6 '18 at 13:38
can we use is here?
– jafar pinjar
Aug 6 '18 at 14:01
getting below error PHP Fatal error: Uncaught Error: Call to a member function is() on array .
– jafar pinjar
Aug 6 '18 at 16:01
add a comment |
You can use below code for Magento-2
Add below dependency construct
protected $_fieldsetConfig;
public function __construct(
MagentoFrameworkDataObjectCopyConfig $fieldsetConfig
) {
$this->_fieldsetConfig = $fieldsetConfig;
}
Now you can get by below code
$customerAccount = $this->_fieldsetConfig->getFieldset('customer_account');
foreach ($customerAccount as $code => $node) {
if ($node->is('name')) {
$fields[$code] = $code;
}
}
Reference from Magento Model class :
vendor/magento/module-customer/Model/ResourceModel/Customer/Collection.php
You can use below code for Magento-2
Add below dependency construct
protected $_fieldsetConfig;
public function __construct(
MagentoFrameworkDataObjectCopyConfig $fieldsetConfig
) {
$this->_fieldsetConfig = $fieldsetConfig;
}
Now you can get by below code
$customerAccount = $this->_fieldsetConfig->getFieldset('customer_account');
foreach ($customerAccount as $code => $node) {
if ($node->is('name')) {
$fields[$code] = $code;
}
}
Reference from Magento Model class :
vendor/magento/module-customer/Model/ResourceModel/Customer/Collection.php
edited Aug 11 '18 at 6:42
Teja Bhagavan Kollepara
2,96341847
2,96341847
answered Aug 6 '18 at 5:58
Suresh ChikaniSuresh Chikani
10.2k53371
10.2k53371
getting Fatal error for $node->is('name');
– jafar pinjar
Aug 6 '18 at 13:38
can we use is here?
– jafar pinjar
Aug 6 '18 at 14:01
getting below error PHP Fatal error: Uncaught Error: Call to a member function is() on array .
– jafar pinjar
Aug 6 '18 at 16:01
add a comment |
getting Fatal error for $node->is('name');
– jafar pinjar
Aug 6 '18 at 13:38
can we use is here?
– jafar pinjar
Aug 6 '18 at 14:01
getting below error PHP Fatal error: Uncaught Error: Call to a member function is() on array .
– jafar pinjar
Aug 6 '18 at 16:01
getting Fatal error for $node->is('name');
– jafar pinjar
Aug 6 '18 at 13:38
getting Fatal error for $node->is('name');
– jafar pinjar
Aug 6 '18 at 13:38
can we use is here?
– jafar pinjar
Aug 6 '18 at 14:01
can we use is here?
– jafar pinjar
Aug 6 '18 at 14:01
getting below error PHP Fatal error: Uncaught Error: Call to a member function is() on array .
– jafar pinjar
Aug 6 '18 at 16:01
getting below error PHP Fatal error: Uncaught Error: Call to a member function is() on array .
– jafar pinjar
Aug 6 '18 at 16:01
add a comment |
for me it works like this:
$fieldset = $form->getElement('id_form');
add a comment |
for me it works like this:
$fieldset = $form->getElement('id_form');
add a comment |
for me it works like this:
$fieldset = $form->getElement('id_form');
for me it works like this:
$fieldset = $form->getElement('id_form');
answered 13 mins ago
Raul EncinasRaul Encinas
1
1
add a comment |
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f237244%2fhow-to-use-getfieldset-for-customer-in-magento2%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Are you working on custom module or change in core function?
– Suresh Chikani
Aug 6 '18 at 13:21
working on custom module
– jafar pinjar
Aug 6 '18 at 13:29
what is it's propose of setId as null?
– Suresh Chikani
Aug 6 '18 at 13:31
Actually exact requirement is From Account dashboard, I have added user account link, where user can add sub user. For that i have created the form once form submits, new user is created with parent user
– jafar pinjar
Aug 6 '18 at 13:34
could you check what is the issue?
– jafar pinjar
Aug 6 '18 at 15:00