Hello Community
I need your help if possbile please
I am building a Customised form from a SharePoint list
In the form I Have a field called Sequential number, there is a calculation where when you add a new item the sequential number increases by 1 each time, it starts of as 0001

The defualt property of the Sequential number is
If(IsBlank(ThisItem.SequentialNumber),
Text(If(IsBlank(intTotalOfDocsOfSameType),
0,
intTotalOfDocsOfSameType)+1
,
"0000"
)
,
ThisItem.SequentialNumber
)
What I am trying to do, is if the users adds an item, then realises they have selected the incorrect document type for example, that the sequential number either re-sets or re-calculates
Not sure how to do this, so any assistance would be great
Thank you
Claire