1

I have an Event firing on item:saved, that ends up modifying some fields on the same item being saved. This of course is not immediately reflected on the Sitecore interface, causing a misleading message if the Content Editor performs further changes and then saving again. In the worst case scenario, a second save would overwrite the effects of the event.

Is there a way to force the values of the item currently being viewed to refresh following my changes?

3
  • Looking for something similar to this.? community.sitecore.net/technical_blogs/b/sitecorejohn_blog/… Commented May 1, 2019 at 22:17
  • 3
    do it in item:saving instead
    – Mark Cassidy
    Commented May 2, 2019 at 6:17
  • 1
    I'll just add what I always add whenever talking about item:saved or item:saving event handlers: make sure you include a conditional check to ensure you don't accidentally re-process the same item multiple times (or the wrong type of items). Commented May 2, 2019 at 12:29

0

Your Answer

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

Browse other questions tagged or ask your own question.