Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Confiforms - Empty field validation rule

Fabio Al-barrak July 24, 2025

Hello,

I have a confiform with the following fields:

TYPE (Required): Drop-down options INDIVIDUAL or GENERIC.

NAME (Not Required):  text area.

SUMMARY (Required): text area.

 

The field NAME is only required when the value in TYPE is set to INDIVIDUAL

I set the following validation rule (.+) to ensure the NAME field IS NOT EMPTY when TYPE = INDIVIDUAL and included a message to show when validation rule matches.

The rule works if the field is empty; the message is displayed. 

The rule works if the field has content in the first line; the message is not displayed.

The rule does not work if the field has content in the 2nd line as it's reading the whitespace (newline).

I looked on Regex Validation; tried (\s), (\S), (\s+) and (\S+) without success.

What validation rule should I be using to disregard the whitespace?

Thanks for your help!Validation Rule.png

1 answer

1 vote
Alex Medved _ConfiForms_
Community Champion
July 25, 2025

Hi @Fabio Al-barrak 

This could be addressed in a more simple way - https://wiki.vertuna.com/spaces/CONFIFORMS/pages/36831436/Conditional+validation+for+required+field

No need for the regular expression - you just define the condition for your validation rules

TYPE.label:Individual AND NAME:[empty]

(no need for the regular expression in the "validation rule")

Alex

Fabio Al-barrak July 25, 2025

That worked. thank you so much @Alex Medved _ConfiForms_ 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events