@ezraveee Oh I see I think you provide different formula in the post than in the screenshot.
Let's check the formula in the screenshot
For NewRma how are you determining it?
You should try this:
OnSelect of New Rma button
UpdateContext({varFormMode:FormMode.New})
and then from where you edit existing record:
UpdateContext({varFormMode:FormMode.Edit})
make sure DefaultMode of your Form is:
varFormMode
Then try this for your existing datacard control property
If(varFormMode = FormMode.New, Last('RMA Register').RmaNumber + 1, Parent.Default)
Does it work now @ezraveee ?
You can also try the approach by @madlad if you prefer, however, you still need to determine the FormMode somehow. If you are both needing to set the FormMode AND use that set FormMode to determine the action to take, a context variable may still be better, but you may use either approach as you see fit though.