Dependency between category and subcategory fields in widget

Bhavani3
Tera Contributor

I have requirement to make Dependency between category and subcategory fields. Those two fields are in same table. What the code i put in server side in widget 

4 REPLIES 4

AndersBGS
Tera Patron
Tera Patron

Hi @Bhavani3 ,

 

What do you mean by dependency? Can you please try to elaborate according to the business requirement?

What is it exactly that you would like to configure?

 

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.

 

Best regards

Anders

If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.

Best regards
Anders

Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/

On widget we have two fields Category and Subcategory ,on based on category choice subcategory choice is displaying the choice. Ex: if category field we select as "Hardware " then subcategory field only shown as "hardware related choice". This both fields are in same table.

Please help me on what the scripting functionality on this?

Hi @Bhavani3 

 

Category and subcategory dependency is configured through the sys_choice.list:

AndersBGS_0-1697354393316.png

As you see above, when hardware is selected in category, the shown values is available in subcategory.

 

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.

 

Best regards

Anders

 

If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.

Best regards
Anders

Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/