Options

how do I check for a fieldvalue before the user has left the record in a page ?

NAV is new to me :)

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.

Answers

  • Options
    SowkarthikaSowkarthika Member Posts: 102
    Try to Set NotBlank property as 'Yes' for the corresponding field.

    Constraints -
    If the NotBlank property is used on other fields than primary fields, the behavior is as follows:
    • If the field is blank, and never entered, the page can be closed.
    • If the field has been entered, and the user tries to enter a blank value, a validation error occurs
  • Options
    RockWithNAVRockWithNAV Member Posts: 1,139
    You can do what Sowkarthika suggested or else if you have certain conditions then you can write code on the QueryClose Trigger of the Page.
  • Options
    KishormKishorm Member Posts: 921
    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.
Sign In or Register to comment.