Creating Unique Keys on forms Unique Key is a field that can’t have repeated values on the table. In general, the same value in on register can’t repeat itself when this field is indicated as a Unique Key. On Scriptcase, you can easily configure these items using the configuration of a form, for example. To make this configuration is very simple.

Accessing the properties of the form, select the option “Unique Key”.

unique key 1

On the screen that’ll open, you can select which fields will be utilized and validate as Unique Key.

unique key 2

unique key 3

 Now that the fields are selected, the process becomes very simple. Every time that a determined value is inserted on this fields and this value already exists on the table where the data will be stored, a message will appear and it will not allow the insertion of a record with duplicated information.

Make the test and configure this option in a form. Using it you’ll avoid problems related to duplicate registers, for example, so this way you guarantee much more quality to your application.

You might also like…

Scriptcase uses the MVC template?

Maybe you might have thought about this at some point, “Scriptcase uses the MVC templates?" Well, ...

How to implement A2F using Own Development in NodeJS in a Scriptcase application

A2F using Own Development in NodeJS A2F: In a previous article, we talked about Swivel as an extern...

Specialists or generalists, who gets a better advantage by using Scriptcase?

Hey there! Today  we will figure what are the ideal profiles for those who wish to take advantage o...

Comment this post

Get new posts, resources, offers and more each week.

We will use the information you provide to update you about our Newsletter and Special Offers. You can unsubscribe any time you want by clinck in a link in the footer of any email you receive from us, or by contacting us at Learn more about our Privacy Police.