Hello,
I have two forms on one page in an app and I want to show specific fields depending on a selection of a dropdown menu in another form. All my data is stored in Dataverse.
What I want to achieve with my app, is that depending on the amount of departments you select, fields for the information of the departments are visible or not. So for example if I select "3", that I can enter the information of 3 departments. When I select "1", then I can only enter the information of one department.
I tried first in the visible control: DataCardValue6_2.Selected.Value = "2", for the fields of information of the second department. It didn't work, so I assumed there is a problem of passing the value between two forms. I stored the DataCardValue6_2.Selected.Value in a global variable as I put in the OnSelect control of the dropdown menu: Set(varDepartmentSelected; DataCardValue6_2.Selected.Value) and then put in the visible control of the department fields: varDepartmentSelected = "2", but it doesn't work.
Can somebody help me here?
Thanks in advance