Clara Lemos
Mega Sage

Hi @phaug ,

 

One thing that you might want to add to your script is a current.setAbortAction(true); after your error message, so that the user is not able to do to the modification.

 

But what exactly is not working as you expected? Is your field type integer?

 

If that helps please mark my answer as correct / helpful!
And if further help is needed please let me know

Cheers