Unique value check upon submit

6 jaren 4 maanden geleden #537 door Dennis Fung
Unique value check upon submit werd gestart door Dennis Fung
Hi,

I am new to CC. I would like to know it is possible to create a field with Unique value.

I love the "Make field required" option. Is there  a way for "Make field unique'.



Thanks,
Dennis

Gelieve Inloggen of een account aanmaken om deel te nemen aan het gesprek.

6 jaren 4 maanden geleden #541 door David Villena
Beantwoord door David Villena in topic Unique value check upon submit
Hi Dennis,

Unfortunately we don't have that option when adding a table field on Component Creator. You'll have to use a DB manager, as phpMyAdmin or similar, to add any key or index to a table.

Regards, 

David.

Gelieve Inloggen of een account aanmaken om deel te nemen aan het gesprek.

6 jaren 4 maanden geleden #542 door Dennis Fung
Beantwoord door Dennis Fung in topic Unique value check upon submit
Hi,

Thanks for your confirmation. I managed to used the phpMyAdmin to change the field to unique key which avoid user to save the similar data twice.

However, shall above scenario happen, Component Creator is showing the SQL error message. Anyway I can change this error message to more user friendly message, such as "this data is in used."


Thanks,
Dennis

Gelieve Inloggen of een account aanmaken om deel te nemen aan het gesprek.

Tijd voor maken pagina: 0.268 seconden
Gemaakt door Kunena

We use cookies so that you can place orders and we can provide a better service. You can control the use of cookies at the individual browser level. If you reject cookies, you may still use our website, but your ability to use some features or areas of our website may be limited.