MSS-required fields

 1 Replies
 0 Subscribed to this topic
 17 Subscribed to this forum
Sort:
Author
Messages
thanef
Veteran Member
Posts: 47
Veteran Member

    In MSS on the personnel action change page, is there a way to make the Reason codes required?  Currently you can submit an action without selecting something from that pull down box.  I'm on 9.0 apps and environment.

    Jay Riddle
    Veteran Member
    Posts: 191
    Veteran Member
      Yes you will need to edit some files under ....\lawson\xhrnet\personnelactions

      I was just quickly looking but I think possibly in pactions.htm in function continueClicked() you would add something like...

      f (self.main.document.getElementById("reasonSelect1").selectedIndex <= 0) {
      setRequiredField(self.main.document.getElementById("reasonSelect"));
      alert("Reason field is required");
      return;
      } else {
      arr = self.main.document.getElementById("reasonSelect1");
      i = self.main.document.getElementById("reasonSelect1").selectedIndex;
      strReason = arr.value; //JayR I want the code value here.
      }