How to make Accounts relationship required for AOS_Invoices

Hello

I’m trying to make the Account and Contact relationship fields required when creating Invoice.

I’ve already tried using Vardefs, but got nowhere.

$dictionary['AOS_Invoices']['fields']['account_name']['required'] = true;

Thanks. Sam

Have you tried doing it through Studio first?

And that file, where are you placing it, and with what name? Did you remember to run a QR&R?