Hi Team,
I have a gallery of items with textinputs, dropdowns and comboboxes.
For e.g. ComboBox2 is dependent on ComboBox1.
The requirement is to have a ComboBox2 display "No" by default when I select a value in ComboBox1 but ComboBox2 should be editable, so that we can select another value from the dropdown.
The issue arises when I try to select another value in ComboBox2 with the previously selected value in ComboBox1, it gets reset to the Default value and also a new record is created with the existing values from all fields in the row where we are making the selection.
I've built it similar to how it's built in the video below:
1. https://youtu.be/wI6SHGQ9ATg
2. https://youtu.be/P6yqIpjmPrs
This is a new item screen.
Items: collection1
OnChange of control in gallery: Select(Parent)
OnSelect of gallery: Patches control value to collection1.
Items of the dropdown controls/comboboxes: Choices([@<SharePoint datasource>].SharePointColumnName)
Findings:
1. If I remove the OnChange action, this issue doesn't occur, but I need that as I am not able to use a single Save button outside the gallery to update the collection.
2. If I use a dropdown in place of ComboBox2, new items are not created but the resetting to default value persists.
Any help is appreciated.
Thanks.