cancel
Showing results for 
Search instead for 
Did you mean: 

onBoundAttributeChanged

Former Member
0 Kudos

Hello,

I got a checkbox, when this gets checked another field should become mandatory, when unchecked the field should be normal.

So i use this code in the onBoundAttributeChanged of the checkbox:

If ctrlctrlChkDel.value <> "" Then

ctrlctrlContact.editmode = cemmandatory

else

ctrlctrlContact.editmode = cemnormal

End If

But something is not right yet, when i check the checkbox the field gets mandatory so this is ok, but when i uncheck it again the field stays mandatory.

Can anyone tell me what im doin wrong?

Thx!

Maarten

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Maarten,

Try this:

If ctrlctrlChkDel.value <b>= True</b> Then

ctrlctrlContact.editmode = cemmandatory

else

ctrlctrlContact.editmode = cemnormal

End If

This control hold the <b>True</b> or <b>False</b> value.

You can see this from the Immediate window.

In the debug mode, go to View->Immediate Window.

In that window type this, and then hit Enter:

?ctrlctrlChkDel.value

It should return the value for this control.

Regards,

Vadim.

Former Member
0 Kudos

Working!

Thx again,

Maarten

Answers (0)