# I have a doubt on Validate rule

**URL:** <https://forums.pega.com/t/i-have-a-doubt-on-validate-rule/5250>\
**Category:** User Experience\
**Tags:** 8-7-5, user-experience\
**Created:** [October 25, 2023, 4:17pm UTC](https://forums.pega.com/t/i-have-a-doubt-on-validate-rule/5250 "2023-10-25T16:17:23Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![kirti](https://avatars.discourse-cdn.com/v4/letter/k/ecccb3/32.png) [@kirti](https://forums.pega.com/u/kirti)\
**Post date:** [October 25, 2023, 4:17pm UTC](https://forums.pega.com/t/i-have-a-doubt-on-validate-rule/5250/1 "2023-10-25T16:17:23Z")

</div>

Hi Guys,

In one section i need to add error message , in that section we have 3 properties all are having radio button selection .

Without select any one of the radio button and click on continue we will get the error message.so i used validate rule in flow action

in validate rule i mentioned X==“” Under X we have to select 1,2, and 3

Y==“” under y we have to select 1,2, and 3

Z==“” Under Z we have to select 1,2, and 3

if it’s null show the error message.

In screen i have X value and select 2 i click on continue screen does not go Forword, because in that work page Y and Z also Null.

How to write validate rule.

Please help me.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Anoop\_Krishna](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/anoop_krishna/32/23458_2.png) [@Anoop\_Krishna](https://forums.pega.com/u/Anoop_Krishna)\
**Post date:** [October 25, 2023, 6:51pm UTC](https://forums.pega.com/t/i-have-a-doubt-on-validate-rule/5250/2 "2023-10-25T18:51:18Z")

</div>

@kirti the logic should be like this-\>

A==“” && B==“” && C==“”

Throw error message.

If you are using expression evaluates to true then above condition as it..

If different labels, then

A=“” ,

B=“”.

C=“”

IN LOGIC, A && B && C

This means if none of the radio button property is having any value then throw error message.

---

<div class="post-metadata">

**Author:** ![kirti](https://avatars.discourse-cdn.com/v4/letter/k/ecccb3/32.png) [@kirti](https://forums.pega.com/u/kirti)\
**Post date:** [October 26, 2023, 5:27am UTC](https://forums.pega.com/t/i-have-a-doubt-on-validate-rule/5250/3 "2023-10-26T05:27:07Z")

</div>

@Anoop Krishna Sorry can’t understand krishna ,

Actually X, Y and Z are different properties. I need condition if any one of the properties not holding any value, then throw error message. I am using this condition expression evaluates to true as of now.

---

<div class="post-metadata">

**Author:** ![Anoop\_Krishna](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/anoop_krishna/32/23458_2.png) [@Anoop\_Krishna](https://forums.pega.com/u/Anoop_Krishna)\
**Post date:** [October 26, 2023, 7:35am UTC](https://forums.pega.com/t/i-have-a-doubt-on-validate-rule/5250/4 "2023-10-26T07:35:53Z")

</div>

@kirti ya correct, then we need to check if any one of these properties is having blank values.

A==“”|| B==“” || C==“”

This logic will check if any one of these properties have blank value or not.

---

<div class="post-metadata">

**Author:** ![kirti](https://avatars.discourse-cdn.com/v4/letter/k/ecccb3/32.png) [@kirti](https://forums.pega.com/u/kirti)\
**Post date:** [October 26, 2023, 9:35am UTC](https://forums.pega.com/t/i-have-a-doubt-on-validate-rule/5250/5 "2023-10-26T09:35:39Z")

</div>

@Anoop Krishna

Thank you krishna

---

<div class="post-metadata">

**Author:** ![kirti](https://avatars.discourse-cdn.com/v4/letter/k/ecccb3/32.png) [@kirti](https://forums.pega.com/u/kirti)\
**Post date:** [October 26, 2023, 8:21am UTC](https://forums.pega.com/t/i-have-a-doubt-on-validate-rule/5250/6 "2023-10-26T08:21:23Z")

</div>

@Anoop Krishna It’s not working krishna

Actually, my requirement is

X and Y and Z

1 1 1

2 2 2

3 3 3

Based up on condition in that screen only one set available if x available y and z not available in Ui, But in backend all are available in same page workPage.

if X set is enabling X==“” throw error message, but here Y and Z null.so screen not continue to next page

---

<div class="post-metadata">

**Author:** ![Anoop\_Krishna](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/anoop_krishna/32/23458_2.png) [@Anoop\_Krishna](https://forums.pega.com/u/Anoop_Krishna)\
**Post date:** [October 26, 2023, 8:36am UTC](https://forums.pega.com/t/i-have-a-doubt-on-validate-rule/5250/7 "2023-10-26T08:36:34Z")

</div>

@kirti okay got you. Can you write this in validate rule and please let me know if it’s working. I will help you understand post that.

A==“” && B==“” && C==“”
