cancel
Showing results for 
Search instead for 
Did you mean: 

How to add Mobile custom field in Customer Registration Form?

Re: How to add Mobile custom field in Customer Registration Form?

i am using english language pack only

Re: How to add Mobile custom field in Customer Registration Form?

Strange.....

Try once on default magento 2.3.

Re: How to add Mobile custom field in Customer Registration Form?

Vimal,

 

I need one more help

Breadcumb is showing in different manner ({{{Home}}{{Home}}{{Home}}{{ThemeMegnor/Mag110246_5}}} ) in frontend and backend .

 

For reference please find the below url

https://vitalticks.com/acropolis-model-ii.html

Re: How to add Mobile custom field in Customer Registration Form?

Hi @sekhar_n 
I more thing for your custom theme. 

you need to add the input field in your create account template files, wherever you want.
<input type="text" name="mobile" id='mobile" value="" />

Also check name and id accordingly as per your theme.

then try to save the customer info, I hope it will work for you!

Re: How to add Mobile custom field in Customer Registration Form?

Hi @sekhar_n
Did it work after adding input field in your theme create customer account phtml file?

Re: How to add Mobile custom field in Customer Registration Form?

No vimal

i have added input and it is showing in frontend wnen i submit the form i am getting error like mobile is required.

Re: How to add Mobile custom field in Customer Registration Form?

Hi @sekhar_n 
It is showing required because we have created required attributes. Smiley Happy 


For reference in installData.php.

'required' => true,

You can also change it, if you reinstall in any other environment.

'required' => false,


For now you can remove required from following mysql query:

update `eav_attribute` set `is_required`=0 WHERE `attribute_code`='mobile'

Clear cache and re-indexing, then check.

 

Re: How to add Mobile custom field in Customer Registration Form?

@sekhar_n 
Please let me know if you still facing any issue?
or confirm if it is working fine.

Re: How to add Mobile custom field in Customer Registration Form?

No it is not working

Now i tried your module in fresh installation of magento 2.3 but it is showing the mobile field in backend and it is not showing in Frontend(registration form ) without any theme and i followed all your steps.

 

could you please help me out?

Re: How to add Mobile custom field in Customer Registration Form?

what issue you are facing now?

did you deployed all commands again?

make sure that you database table "eav_attribute" is updated and your input field have not required class on frontend. PFA.

mo.png

Just checked working fine at my end.