Unique value check upon submit
Dennis Fung
Navegador Iniciado
Posts: 4
9 años 11 meses antes #537
por Dennis Fung
Unique value check upon submit Publicado por 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
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
Por favor, Identificarse o Crear cuenta para unirse a la conversación.
David Villena
Moderador
Posts: 6
9 años 11 meses antes #541
por David Villena
Respuesta de David Villena sobre el tema 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.
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.
Por favor, Identificarse o Crear cuenta para unirse a la conversación.
Dennis Fung
Navegador Iniciado
Posts: 4
9 años 11 meses antes #542
por Dennis Fung
Respuesta de Dennis Fung sobre el tema 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
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
Por favor, Identificarse o Crear cuenta para unirse a la conversación.
Tiempo de carga de la página: 0.049 segundos