Announcements
Dear Experts,
In bank receipt voucher
I want to set "Document Type" as a TESTFIELD for all account type except the "G/L Account". where i need to write the condition and please provide me the tips to write the condition.
*This post is locked for comments
What Mohana said is correct. All based on your requirement. You can user onaction trigger of the post button, before start the code you can place your own code which you have written .
Testfiled gives you standard error message. If you do not like it, you can you ERROR instead of TESTFIELD.
Than you sir.
I will confirm you tomorrow.
if you want to have document type filled while selecting the Account Type. then you can write it in Account type onvalidate trigger
or if you want it while trying to post then write it in post onaction trigger
Thank you for the timely reply.
I write the logic something like that...but where I needs to write it.
IF "Account Type"="Account Type" ::"Bank Account" THEN
TESTFIELD("Document Type");
what code did you try?
yes sir, I want to use as a "Document Type" mandatory when the we do the bank related entry.
You can use TESTFIELD . Have you tried it ?
did you try writing TESTFIELD code under Post Action trigger of bank entry page?
Hi MKY,
You can refer to this thread as it this question answered before.
community.dynamics.com/.../162390
If you find this answer helpful, you can share it with community members as a Verified answer by click Yes.
Dear Sir,
For example when we post the bank entry always ask "Document Type Can Not be blank",
but if we are doing the general entry there will be no message.
I hope you can understand.
André Arnaud de Cal...
294,099
Super User 2025 Season 1
Martin Dráb
232,866
Most Valuable Professional
nmaenpaa
101,158
Moderator