M
matchorno
I have a form that is bound to a table. My situation is: if a user starts to
fill in the form, but changes their mind, they click a delete button.
However if, they have happened to have not yet filled in the primary key,
they get an error stating: "The field Expungements.ExpungementID cannot
contain a Null value because the required property for this field is set to
true. Enter a value in this field". I want to keep this field set to
required. However I don't want to have them required to fill in this field
if they are just trying to delete the record. Is there a clean anyway around
this, besides putting a dummy entry in that field if they try to delete it?
I want to capture this type of error if they are trying to save the record,
but I don't care if it's filled in if they are just trying to delete the
record. Thanks for your help.
fill in the form, but changes their mind, they click a delete button.
However if, they have happened to have not yet filled in the primary key,
they get an error stating: "The field Expungements.ExpungementID cannot
contain a Null value because the required property for this field is set to
true. Enter a value in this field". I want to keep this field set to
required. However I don't want to have them required to fill in this field
if they are just trying to delete the record. Is there a clean anyway around
this, besides putting a dummy entry in that field if they try to delete it?
I want to capture this type of error if they are trying to save the record,
but I don't care if it's filled in if they are just trying to delete the
record. Thanks for your help.