Value not in list still allows change

Sort:
You are not authorized to post a reply.
Author
Messages
Mark A
Basic Member
Posts: 8
Basic Member
    I added two listboxes to AP20 and upon add or change update the Invoice Group by concatenating the values in the listboxes.

    Normally, if you key in a value that's not in the list and tab out of the field, the system stops you from processing and provides a "Value not in list" message. However, if you simply type in a value and click change on the form without leaving the field, it allows the change and updates the field even though there's a "Value not in list" message.

    I'd like to capture that message, alert it on screen and stop all other processing but can't get the message.

    Any ideas? It's not an AGS call so getMessage doesn't work.
    Ragu Raghavan
    Veteran Member
    Posts: 469
    Veteran Member
      How about coding am edit in the FORM_OnBeforeTransaction function ?

      Something like:

      vEmpStatus = lawForm.getFormValue("select103",0);
      if (vEmpSTatus != "FC" && vEmpStatus != "FN" && vEmpSTatus != "FT" && vEmpStatus != "FP")
      {
      alert("Invalid Status" + vEmpStatus);
      return false
      }

      The retrun false should prevent any further processing.
      You are not authorized to post a reply.