Anyone know how to get the department field mandat...
# general
j
Anyone know how to get the department field mandatory on the EXPENSE line level? The workflow sublist method only gives you the option to choose the ITEM sublist but not the expense sublist.
z
You can do it with a client script
j
@Zack this is the code I have but it's not working
r
assign the variable department
👍 1
j
@Ravi what do you mean by that?
z
Line 10 is looking for a variable named
department
, but you named your variable
name
on line 7.
You could just do
if (!name){return true}