Making the Project field in the Account Child table mandatory based on the parent 'Company' field on the New Journal Entry account

Making the Project field in the Account Child table mandatory based on the parent ‘Company’ field on the New Journal Entry account

I can do it based on a field in the same table, but how do I reference the ‘Project’ field from the parent ‘journal entry’ table? What would that look like?
I tried a couple of hit and trial names such as ‘JournalEntry.company’, but that didn’t work.

Any help would be great.

Thanks!

customize form, mandatory depends on for project field

eval:parent.comany=='yourcompany'

I tried that. But how do I find out the ‘parent’ table name? I tried ‘journalentry.company’ and journal_entry.company, but that didn’t work. Or should I just type in the word ‘parent’?

I tried this: eval:parent.finance_book==‘BEE Ledger’
didn’t work.

Thanks!