× EXP Autos Pro for Joomla 1.5/1.7/2.5/3.0
If you member please ask you questions in Members Forum !

Hide capacity field if vehicle is electric

More
4 years 6 months ago #33537 by Paulo
Paulo created the topic: Hide capacity field if vehicle is electric
Hi Grusha,

I have the following problem:

When a vehicle is electric the capacity is not used because the vehicle doesn't have cylinders, so I would like to hide the capacity option when the vehicles are electric.

Can you please help with the right piece of code?

Note: I know you are going to say that I can simple make the field capacity not required and then when nothing is introduced in that field it would not display the field, but I need that field has required since I have it exporting to an API and some value need to be inserted for it to work.

Thank you
Paulo
The topic has been locked.
More
4 years 6 months ago - 4 years 6 months ago #33538 by Grusha
Grusha replied the topic: Hide capacity field if vehicle is electric
Hi Paulo.

Everything is much simpler... Go to Admin Area -> Components -> EXP Autos Pro -> Categories
Open your Category and in right side in "Use Fields" tab you can enable\disable any fields for each Category.

P.S.
Please ask your questions in Members Forum >>> this topic have name "EXP Autos Pro for Joomla 1.5/2.5/3.0(no questions , only news!)" ;)
Attachments:
Last Edit: 4 years 6 months ago by Grusha.
Sorry for my English.
The topic has been locked.
More
4 years 6 months ago #33539 by Paulo
Paulo replied the topic: Hide capacity field if vehicle is electric
Hi Grusha,

Thank you for your reply and sorry about the topic in the wrong place, I thought I was doing it in the right place, you can move it if you want.

Regarding your solution, has I told you in the note, I cannot disable this field because I still need to use it since I have it connected to another platform API and the field still needs to be filled for it to work.
I would only need that when we select the fuel with the code electric it would hide the capacity field even if it was filled.

Thank you
Paulo
The topic has been locked.
More
4 years 6 months ago #33542 by Grusha
Grusha replied the topic: Hide capacity field if vehicle is electric
I open topic with your question in Member Forum >>> and all answers in that topic.
Sorry for my English.
The topic has been locked.