Form wont recognize script

 0 Replies
 0 Subscribed to this topic
 11 Subscribed to this forum
Sort:
Author
Messages
rsharp
New Member
Posts: 1
New Member

    Can anyone help?  I insert this script, in design studio on PO31; even if the text37 is empty the process still goes through and dont trigger the script to run.

    function BUTTON_OnClick(id, row)
    {
     if (id == "button8")  //When the shipped button is pressed
     {
      var compValue=lawForm.getFormValue("text37");
      if (compValue == "")
      {
       alert("Message");
       lawForm.positionInFieldById("text37");
       return false;
      }
     } 
     return true;
    }

     

    Thanks in advanced