Disable fields in "My Account" form

Ask your questions here.
Post Reply
pepe
Sponsor
Sponsor
Posts: 556
Joined: 25 Aug 2015, 21:35
Name: Pepe
Location: Graz, Austria
Contact:

Disable fields in "My Account" form

Post by pepe »

Could somebody please provide help to disable or hide the three bottom fields in the "my Account" form:
2024-03-02_My_Account.JPG
I would really appreciate your help.
regards, Pepe
User avatar
support
Site Admin
Posts: 6215
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: Disable fields in "My Account" form

Post by support »

There is no configuration for this.
Benno812
Posts: 132
Joined: 30 Oct 2019, 02:38
Name: Benedetto Fiorentini
Location: Rome, Italy

Re: Disable fields in "My Account" form

Post by Benno812 »

Just paste this css in our custom css page:

Code: Select all

#account_form > .form-body > .tab-content > #form_tab_1 > div:nth-child(7),
#account_form > .form-body > .tab-content > #form_tab_1 > div:nth-child(8),
#account_form > .form-body > .tab-content > #form_tab_1 > div:nth-child(9)
{display: none;}
techtr
Posts: 176
Joined: 23 Nov 2021, 04:48
Name: Zach S.
Location: United States

Re: Disable fields in "My Account" form

Post by techtr »

Hi, I need this as well but did not work when I pasted on Configuration > Custom CSS page. Have you tried and worked at your end? Thank you.
pepe
Sponsor
Sponsor
Posts: 556
Joined: 25 Aug 2015, 21:35
Name: Pepe
Location: Graz, Austria
Contact:

Re: Disable fields in "My Account" form

Post by pepe »

Yes, I tried the suggested solution but, unfortunately, it does not work. Objects structure may have changed in the form. Regards, Pepe
pepe
Sponsor
Sponsor
Posts: 556
Joined: 25 Aug 2015, 21:35
Name: Pepe
Location: Graz, Austria
Contact:

Re: Disable fields in "My Account" form

Post by pepe »

I tried to address the elements but can't get it to work. I have tried the following:

#account_form > div.form-group > div:nth-child(6),
#account_form > div.form-group > div:nth-child(7),
#account_form > div.form-group > div:nth-child(8)
{display: none;}

May be, somebody could look at the challenge and provide some help?
Thank you,
Pepe
pepe
Sponsor
Sponsor
Posts: 556
Joined: 25 Aug 2015, 21:35
Name: Pepe
Location: Graz, Austria
Contact:

Re: Disable fields in "My Account" form

Post by pepe »

This works:

.form > #account_form > .form-body > div:nth-child(6),
.form > #account_form > .form-body > div:nth-child(7),
.form > #account_form > .form-body > div:nth-child(8) {
display: none;}

Regards, Pepe
Post Reply