I have a field that I want to check before the user leave the record. the field must not be empty.
I have tried with Error('something') but without look.
Note that if you use the OnQueryClose method suggested by RockWithNav then this won't work if the user moves off the record by going to the first/next/previous/last record instead of closing the page. You would also need to add code to the OnFind and OnNext methods too and check when the user navigates to a different record. You'd also need to handle the normal record navigation in those methods.
Answers
Constraints -
If the NotBlank property is used on other fields than primary fields, the behavior is as follows:
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/