Why some fields are "grey"

 3 Replies
 0 Subscribed to this topic
 12 Subscribed to this forum
Sort:
Author
Messages
Terry P
Veteran Member Send Private Message
Posts: 234
Veteran Member
I've made modifications to the PO20.1 screen. Now I notice if I "tab" thru the fields, they turn "grey". What causes that?

See the attached screenshot for an example.

John Henley
Send Private Message
Posts: 3351
What were the changes that you made?
Thanks for using the LawsonGuru.com forums!
John
Terry P
Veteran Member Send Private Message
Posts: 234
Veteran Member
I don't recall specifically when it started to go back and figure out what I did to cause it. I've been making several Javascript changes, but nothing that I can think of to cause this type of behavior. I have all my previouse versions (I save them as I go) so about the only thing I can think of is to go backwards one at a time until I find when it started.

Are there any type of modifications though that would cause this. The fields are not greyed out unless I "tab thru" the field.
Terry P
Veteran Member Send Private Message
Posts: 234
Veteran Member
Ok - found the problem. I'm still not sure "why" it greyed out the boxes, but I'll document it here in case someone else ever experiences it.

Basically it was a "misplaced return" statement. Listed below is the code. Note the commented out "return true". This was where it was originally. I did not have it outside the "if construct". Put it in the correct spot and it works fine now.


//*********************************************************************************
// When a text field loses focus
//*********************************************************************************
function TEXT_OnBlur(id, row)
{
// default the location based on buyer code
if (id == "text7" && lawForm.getFormValue("text9") == "")
{
// get the first shipto location for buyer code
bPerformTrans = getLocation()
// return true; <----------- here was the problem
}
return true; <----------- moved it to here
}
//*********************************************************************************
//===================================================================================================