Discussions
Set Dept and Class automatically
Hi,
I am trying to populate the Department and Class fields on the Cash Sale transaction (and eventually on PO, Invoice, etc.). I did try setting a restriction for the Dept and Class to the user's profile, but I still need them to be able to change them if necessary and restricting does not allow that.
Can anyone suggest the Javascript to include? I guess it could populate it on save or on load. This first example below succeeded in populating the department name (Association) but when I save it says I still need to add a department (it is a required field for us).