I have a collection which the user can review before submitting and make any changes if required:
In this example, the location is connected to "Arbroath" campus. If the campus is changed to another campus, I dont want to collect the Arbroath Location dropdown. If i change this examples campus to Forfar, the location disappears but is still collected and submitted.:
How do i reset the location dropdown to blank if another option is selected and submitted? The save button i have the following:
Patch(LaptopsRequest, ThisItem, {Site: Site_Drop2.Selected.Value, ACLocation: AC_Loc2.Selected.Value, GCLocation: GC_Drop2.Selected.Value, NumberRequired: Number2.Text, StartDate: Start_Date2.SelectedDate, StartTime: Start_Time2.Selected.Value, EndTime: End_Time2.Selected.Value, Recurring: Recurring2.Selected.Value, EndDate: End_Date2.SelectedDate, Notes: Notes2.Text, Click: false}); If(EditPressed, false, Collect(LaptopsRequest, {Site: "", ACLocation: "", GCLocation: "", NumberRequired: "", StartDate: Today(),StartTime: "", EndTime: "", Recurring: "",EndDate: Today(), Notes: "", Click: true}));UpdateContext({EditPressed: false}); Set(NeedSaved, false)Basically, if Arbroath is selected, then collect ACLocation, If Gardyne is selected, then collect GCLocation and reset ACLocation, If anything else is selected reset ACLocation & GCLocation and collect all other fields.
Hope that makes sense.
thanks
Alistair

Report
All responses (
Answers (