2

Keyword fields are optional. We would need the key field to be mandatory in order to avoid back-end errors. Is there an easy way to make the key field of a keyword mandatory?

1 Answer 1

8

There's no 'out of the box' way to make the Key field of a Keyword mandatory, unfortunately.

I recommend that you do this using the Tridion Events System.

It should be quite simple to write the code that intercepts the save action (as it's initiated) and prevents the successful saving of the Keyword unless the Key field is populated.

You'll probably want to hook into the Events System using the following:

EventSystem.Subscribe<Keyword, SaveEventArgs>(KeywordSaveMethodToCall, EventPhases.Initiated);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.