Confiforms date validation with another date field

Javier L February 17, 2021

I have a wierd behavior in my form  (CONFIFORMS)

I am working with a field that represents the date of the request (filled automatically to today), requestdate.

I have another field which is an interval date to reservation purposes. 

I want to validate that the interval starts after the requestdate. 

In my Confiforms Rules for field Definition I set a validation rule like this:

- FIeld name: theinterval

- Condition: requestdate:>interval.startDate

When we create the entry the validation rule does not work, whereas when I edit the entry it correctly detects the incorrect date.

What am I missing?

2 answers

1 accepted

0 votes
Answer accepted
Alex Medved _ConfiForms_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 17, 2021

You should reference the value, not the "text" for "interval.startDate", as you check the field agains the value in the conditions... 

Meaning that the correct one would be

requestdate:>[entry.interval.startDate]
Javier L February 17, 2021

I did what you suggested and set a point '.' in the Validation rule.

 

It worked !! Thank you so much

0 votes
Andrzej December 27, 2024

Hello,

Can you have a look on the below validation rule? Why is it not working as expected? 

I'm trying to create validation rule based on the another date field.

My criteria (as EmployeeContractEnd mustbe later then start date). I added dot in the validation rule. 

EmployeeContractEnd:>[entry.EmployeeContractStart] 

 

Przechwytywanie01.PNG

Alex Medved _ConfiForms_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 27, 2024

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events