Unblock UI if Validation Fires

  • 1
  • Question
  • Updated 4 years ago
  • Answered
When blocking the UI, is there a way to unblock the UI if a validation rule fires?  I'm currently blocking the UI while a save is in progress and unblock once the save is complete but when a validation rule fires, the save never occurs so the UI remains blocked.

I'd like to avoid using the timeout option because I don't want the UI blocked for 6 seconds when the save only takes 3 and also don't want the UI to unblock while the save is still being processed.

Photo of Will Soupcoff

Will Soupcoff

  • 734 Points 500 badge 2x thumb

Posted 4 years ago

  • 1
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
Not completely sure, but this should work for you.



(Edited)
Photo of Zach McElrath

Zach McElrath, Employee

  • 49,056 Points 20k badge 2x thumb
Pat's approach is correct --- add an On-Error Action to your Save Action that either (a) Unblocks the UI completely (b) shows a transient message saying that there was an error
Photo of Will Soupcoff

Will Soupcoff

  • 734 Points 500 badge 2x thumb
Perfect. Thanks, Pat!