This is where things get complicated.
There are three Default properties to be aware of:
- Form#.Items
- DataCard#.Default
- DataCardValue#.Default
When you use NewForm, the Form#.Items property is blank and that will trickle down to DataCard.Default and DataCardValue.Default, if they have not been changed from Parent.Default.
If you use ResetForm, the Form#Items property will be in effect. If DataCard.Default and DataCardValue.Default are still set to Parent.Default, then they will take on the corresponding column for that record.
I think as long as you made the edits to DataCardValue and not the other two, things should work out.
Otherwise, you may need to use a variable to detect whether you are in New mode or Edit mode.
And then based on the state of the variable, determine the default value.
For every instance of:
NewForm(Form1)
or
ResetForm(Form1)
accompany it with:
UpdateContext({edit: true/false})
So you end up with:
NewForm(Form1);
UpdateContext({edit: false})
and
ResetForm(Form1);
UpdateContext({edit: true})and adjust DataCardValue.Default to:
If(edit,Parent.Default,[your variable here])
This means, if you're editing an existing record, it will take on the value of the existing record. Otherwise, it will take the value of clicking your icon. From here, you'll need to tweak the condition to suit your needs--if a condition is needed.