The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

How to use Confiforms Field Definition Rules with Validation rule (dataset)

Michael Confessore
December 1, 2020

I have a Confiform TableView that is populated with data and I’m looking to run a check to prevent a new record from being added to the table if a field in the record matches one already in the table. I believe that the “Validation rule (dataset)” option on the Confiforms Field Definition Rules is the right approach, but when I set the condition:

myField:[entry.myField]

the condition is always true and the record is never allowed to be added. What is the proper syntax for the comparison of the new record’s field value to existing field values in the table?

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Alex Medved _ConfiForms_
Community Champion
December 1, 2020

Hi

This is a correct way to check, but you need to check for count also

In the condition parameter you will need to put the following expression

myField:[entry.myField] AND _count:>1

Alex 

Michael Confessore
December 2, 2020

Worked perfectly, thank you!

TAGS
AUG Leaders

Atlassian Community Events