Skip to main content
added 178 characters in body
Source Link
Jonathan Williams
  • 14.5k
  • 1
  • 26
  • 59

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);

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.

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);
Source Link
Jonathan Williams
  • 14.5k
  • 1
  • 26
  • 59

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.