Making a field required is very common requirement and making a field required on conditional basis is also not unusual.

Making field required is very simple by just checking the Required Property of the field. But making field required on conditional basis is a bit tricky. There are couple of alternatives to that.

Scripting: I have already explained one approach in the Post to make Required field SRF Independent using LOV’s and Scripting.

User Property: You can also use User Property called ‘Required’ to make a field required on conditional basis.

There is only one limitation of this user property that the class of the BC should be either CSSBCBase or inherited from CSSBCBase
 

Syntax: Required

Value: Expression if evaluated as Y will result in the Field becoming Required.

Procedure:

  • Select the field of the BC which you want to make required.
  • Select the Field User Property as shown in the Picture below.

Siebel Required Property Object Explorer

  • Create a New User Property.
  • Enter the Name as Required.
  • Put the value as Expression.

Example:

We Assume that we want to make Field called Full Name to be required if Name Flag Field is Y. So you user property will be like below.
Name                               Value
Required             IIf ([Name] = “Y”, “Y”, “N”)

Siebel Required Field User Property

OkAvarageGoodVery GoodExcellent (2 votes, average: 3.5 out of 5)
Loading ... Loading ...

Related Posts