Enforce one of the selection "Male" or "Female" to be selected

Hi,
Assume i have two options “Male” or “Female” in the form that one of the two must be selected.

How can i achieve this in Epicor 10 customisation?

And what data type in the UD column should i create?

Regards

Sounds like a simple binary field (1 = Male, 0 = Female).

You should be able to make the field required with a Data Directive (In-Transaction) against whatever table you’re adding that UD column to.

Below is an example I have which makes the Product Group required on an Sales Order Line (OrderDtl).

What I’m NOT sure of, is, with a binary field, whether you have to choose a default value. Hopefully when you create the UD column you can set the default to be empty. Then the Data Directive will not allow them to save the record unless the user selects a value.

1 Like

The simpler way to do this would be to just use a radio button control. No need for a BPM.

4 Likes

That doesn’t force it to be required though, would it?

That’s the entire purpose of radio button. You’re only allowed to select one by its nature.

1 Like

But could they not save the record without choosing either option?

Ah, okay–I missed that bit.
Set the extended property for the control to be “Required”.

3 Likes