Can we use Conditional Logic on Custom Field?

  • Posts: 22
  • Thank you received: 0
8 years 4 weeks ago #267805

-- HikaShop version -- : 3.0.1
-- Joomla version -- : 3.6.0


Can we use Conditional Logic on Custom Field?, so we can create dynamic form.

for example:
I have 2 custom fields (both drop down) : department and sub_department
If i select department field equals to sales, Then in sub_department only able to select : sales internal , sales external
If i select department field equals to purchasing, Then sub_department i only able to select : purchasing internal , purchasing external

Can this be done without code customisation?

please advise

Please Log in or Create an account to join the conversation.

  • Posts: 83800
  • Thank you received: 13571
  • MODERATOR
8 years 4 weeks ago #267819

Hi,

Yes. You can use the "display limited to" setting of the custom fields so that a custom field will be displayed or not based on what is selected in another custom field.
So in your case, you would actually need three custom fields:
- one to display the choice sales/purchasing
- one to be displayed when sales is selected
- one to be displayed when purchasing is selected

That way, no code is necessary.

Please Log in or Create an account to join the conversation.

Time to create page: 0.048 seconds
Powered by Kunena Forum