Hi All, I also enable location on item line level ...
# suitescript
j
Hi All, I also enable location on item line level and body field. How can I restrict adding that line if location is empty. I tried validateInsert but not working. Hopefully you guys can help with a simple code with this. Thanks in advance
b
is making the location mandatory an option?
j
@battk No, If i enable it- it will be mandatory on all forms..I want to restrict users adding that item on Sales Order form if location is empty
b
you can make the field mandatory via script
use the form from a beforeLoad script to get the sublist, then get the field, then set isMandatory
j
Thanks @battk. it works