Hiding Form fields

Hi, Please help me , Ax2012, I have requirement, I have a Form (Journal) LedgerJournalTable, in that if i select a journal name(as Cash) and click on Lines then in other form(LedgerJournalTransDaily) required 2 fields should display. If I select Journal name (other than cash) then those two fields should be hidden. Please help me .

Hi Sids,

In the form “LedgerJournalTransDaily”, init() method we can put the validation to check the journal is cash. If yes then we could make the form fields visible otherwise we could hide them.

Before jumping to the code we first need to make auto declaration property yes for those two fields.

Hi Ebrack,

Thankyou for reply. I am new to AX. Will you please provide me the code.