Hi everyone,
I'm coding with the modem for for the first time. The customer has a basic forms license and would like to have a tiered drop-down ie: Drop-down A shows a list of categories, and drop-down B shows al list of items for the selected category. My plan was to hard-code the list and adapt this code but I need some help.
I found a sample solution on this page but am unable to adapt it. https://stackoverflow.com/questions/71217155/populating-drop-down-list-from-selection-to-label-value
Basically...
1. populate a an array (this sample is for three-levels but I only need two):
let data = [{"id":1,"name":"Infimos","parentid":0, "urgency": "low"}, {"id":2,"name":"Computer servicing","parentid":0, "urgency": "medium"}, {"id":3,"name":"Software installation","parentid":0, "urgency": "urgent"}, {"id":4,"name":"Fix errors","parentid":1, "urgency": "low"}, {"id":5,"name":"New feature","parentid":1, "urgency": "medium"}]
2. Then append the values to a drop down and using an onchange trigger, populate the second level as required.
Can this complexity even be achieved in the modern designer, or is classic required?