Setting default button from Cancel to OK

teeter
teeter Member Posts: 46
This seems silly to me, but my client wants the OK button of a form to be the defualt button instead of the OK. Is there a way to do this?

Thanks in advance,

Joel

Answers

  • aka_USAPA
    aka_USAPA Member Posts: 62
    Try setting the Default property of the button to Yes. That might do the trick. I would make sure no other buttons have a default value with Yes as well.
  • ara3n
    ara3n Member Posts: 9,258
    Did you mean Cancel instead of OK?
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • teeter
    teeter Member Posts: 46
    aka_USAPA
    I tried the default property, no luck there.

    ara3n
    By default, focus is on Cancel when the from is opened, I want focus to be on OK instead.

    I seem to recall somewhere in the developers guide a mention that this was a default setting in navision (so that posts weren't made on accident, etc) and shouldn't be changed, but the client isn't buying that, might come down to a strait, "No, it can't be done".
  • teeter
    teeter Member Posts: 46
    lol, sorry for wasting your time guys, I found this

    CurrForm.Cancel.ACTIVATE;

    In the OnOpenForm trigger #-o