⚠ In case you've missed it we are migrating to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This forum is read-only and soon will be archived. ⚠


Member Since 09 Apr 2017
Offline Last Active Jun 16 2021 12:03 PM

Posts I've Made

In Topic: Adding just a record

09 May 2021 - 07:32 PM

Hi !
You should left the add button visible, and then deal with the check inside the callbackBeforeInsert. If the check find a row already, you can return an error with a message saying “you can’t add a second row” or something like this.
Check the documentation about the callbackBeforeInsert to see how to deal with the error message. Of course this solution is valid if it’s ok for you to let users see the add button always. I think that would be better because the user can understand why he can’t add the row ( reading the error message ) instead of seeing the add button disappear. My two cents :)