Change dropdown default selected value based on a toggle control
I have a dropdown from a SharePoint list with two items in it. "Normal Time" and "Overtime". I have a toggle switch which i want to control the dropdown selection toggle between normal time and overtime. I am using the toggle switch as I need more space and do nopt want the dropdown showing on the form.
It works when creating a new form using the default on the dropdown data card as:
But i am battling to get it to now work when the form is edited and the toggle is changed.
My thinking is to do something on the toggle OnChange trigger, which will update the default on the dropdown datacard default, but can not get this to work or maybe the syntax correct....any help appreciated or if I should be using a different method then let me know.
I think you are making this much more complicated than it needs to be. First hide the combobox inside the card. If you want to enter either "Overtime" or "Normal Time" in a form, set the toggle properties as follows: