- Posts: 22
- Thank you received: 0
Can we use Conditional Logic on Custom Field?
9 years 5 months ago #267805
by sapura
Can we use Conditional Logic on Custom Field? was created by sapura
-- 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
-- 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.
9 years 5 months ago #267819
by nicolas
Replied by nicolas on topic Can we use Conditional Logic on Custom Field?
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.
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.172 seconds