cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to Use Rule Editor to make a KUT field mandatory based on checkbox

Former Member
0 Likes
3,038

Hi Experts

I have an Urgent requirement to set a KUT field mandatory based on checkbox.

requirement is, if checkbox is not checked then KUT field should be mandatory and mandatory sign the * should be seen there.

Please suggest me your valuable suggestion.

Please reply as soon as possible as it is urgent.

Accepted Solutions (1)

Accepted Solutions (1)

PrasanthArya
Product and Topic Expert
Product and Topic Expert
0 Likes

I have defined a sample scenario based on your requirement as below and could see it is working

You can work on the same for accounts and once understood , you can apply the same logic to your fields.

Scenario : creation of a New account via Quick create

Conditions :

1) If Prospect check box is active , then Phone Number field is Not mandatory
2) If Prospect check box is not active , then Phone Number Field is Mandatory , * indicator is shown and Save Fails with Error message

Actions Taken :

Go to the Field Phone in Adapt
Select Change Properties
Select the hyperlink rule next to Mandatory
Against the Rule Name , select Create New rule and Enter a rule name.
Identify the Field from Field name , my field is Prospect which is a checkbox , I will select the Field Prospect which is Identified as Root.Prospect
Select Functions and define a rule with IF as condition in the format : IF(logical_expression, value_if_true, value_if_false)
So while I define my rule ,it will be IF(Root.Prospect, true, false)
Click on Apply and Save

So the Rule defined here satisfies the conditions above and completes the scenario with conditions.

Former Member
0 Likes

Hi Prasanth,

Thank you for your suggestion and answer of my question this is really a good one. I did exactly you define and it is working well.

Thank you again.

Answers (1)

Answers (1)

former_member259099
Participant
0 Likes

Hi Guys,

What if my condition field is a custom field(that i created with KUT) i cannot see my custom fields for opportunity item in Rule Modeler. IS there any way to enhance these item custom fields for rule modeler and code list restriction purposes?

note: header level is working fine.

Orkun.

juliabeer
Newcomer
0 Likes

Hi Orkun, have you found a solution for this issue?

former_member226
Employee
Employee
0 Likes

Item level fields are not available as part of model rule validation. You have to either write a validation via PDI script or use some "ListModificationStructure" based field(but it has its own limitations)