Page 1 of 1

Setting custom field in 7.0.175 c#

PostPosted: Tue Sep 08, 2026 2:59 pm
by DannyC
I have a debtors custom field.
When I create a new debtor I want to default the value. It's a boolean and I'd like it to be unticked i.e. false.

This client is still on 7.0.175 and I am developing code in c#.

I've been trying various syntax for a few hours now and have searched high & low in amongst my old code, the forums, etc and I can't nut out.
Basically on the event debtor.CreateEnd I just want to set the checkbox to false.

That'll force the custom field to be set with a value instead of just saving and the custom field value isn't even there.

I've got code for 7.2.1 and VB.Net code for 7.0.175 but even converting the VB to c# isn't bearing fruit.

Re: Setting custom field in 7.0.175 c#

PostPosted: Tue Sep 08, 2026 3:06 pm
by Mike.Sheen
DannyC wrote:I've got code for 7.2.1 and VB.Net code for 7.0.175 but even converting the VB to c# isn't bearing fruit.


What a tease you are!

You won't show us the VB Code you already have - which you know works for 7.0.175 - which just needs to be converted to c#, and instead you're going to make us go on software archeology expedition to work out what the plugin code for a 10 year old version of the software would have looked like.

I'll get the thawing process started on the 7.0.175 code - might take a few weeks, however.