Hi @sienna28 ,
I am happy for anyone else to come in, but you must understand that our small group of volunteers that try to assist users have absolutely no idea of the progress in the PowerApps journey that you have taken when providing a solution.
We generally try to provide direction on where you should look for a solution and your previous replies and your status level lead me to assume that the guidance I gave would have given you this, however I am happy to elaborate further to assist.
Firstly, the Default value of a control can be changed with a Reset command initiated by another action and the control will be set to the value in this Default value. You can also make this Default value conditional, in this case by a Variable initiated by the first action.
So to explain the sequence of events (as posted earlier) I will assume the following:-
- The Default of Combo1 is Parent.Default - if it is different, then you need to simply replace Parent.Default with this value.
- I am going to call the Variable vReset - you can name it whatever you want.
- I will call the ComboBox Combo1 below - replace this with the value of your control.
- I will assume the new item is from the text box NewItem - again replace this with your control name.
Firstly, set the Variable vReset to the new item value on the saving of the record and reset Combo1
UpdateContext({vReset:NewItem.Text});
Reset(Combo1)
and in the Default of the Combo1
If(
!isBlank(vReset)
vReset,
Parent.Default
)
so when Combo1 is reset and vReset is true, it will reset to the value of vReset.
The last bit is better on probably screen exit to reset the variable so Combo1 will take the stored data when opened.
UpdateContext({vReset:false})
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.