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
ctrlctrlContact.editmode = cemnormal
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?