Solved

How do I ensure a custom text field is unique?

  • 21 July 2023
  • 3 replies
  • 59 views

I’m creating an extension that will be a single line text field, and I’d like to ensure its value is unique. When setting a normal text field on a content type, I can have contentstack verify the field is unique before saving the entry by checking the box under properties > advanced > options > unique. When using a custom text field, I still see the “mandatory” and “non-localizable” options, but the unique option is gone. So how can I ensure the value entered is unique?

icon

Best answer by michellegrady 16 August 2023, 23:47

View original

3 replies

bump

Userlevel 5

@michellegrady are you able to help here?

Hi @Kiefer, currently, the uniqueness validation must be done within your app or extension itself. However, please know that we recognize the importance of this enhancement, and we have a pending item in our backlog to address this.

Reply