Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Rule to limit a date from being selected

HI folks, hope all is well.

I am building a confiform intake, and one of the fields definitions i am using is a date, Field name is RDD. 

Is there an opportunity to add a rule, and what would that rule look like, to limit someone from picking a date in the past and restrict them from picking a date that is less than 7 days in the future?

Thanks so much

 

1 answer

1 accepted

Absolutely

Just add a ConfiForms Field Definition Rule with validate action

Screenshot 2020-11-06 at 15.44.33.pngScreenshot 2020-11-06 at 15.44.42.png

Condition is set to 

mydate:<=[yesterday] OR mydate:>[today]+7

Based on shortcut functions we can use for dates in filters: https://wiki.vertuna.com/display/CONFIFORMS/ConfiForms+Filters 

Screenshot 2020-11-06 at 15.44.47.png

Thanks Alex,

This field isn't always required, but when it is the date must follow that logic.  Is there anyway to accommodate that?  With the logic provided, it appears to work but makes the field mandatory.

Thanks in advance. 

Well, change the condition to handle that... into something like this may be:

(!mydate:[empty]) AND (mydate:<=[yesterday] OR mydate:>[today]+7)

Thanks Alex!!!

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

Announcing Team Calendars in Confluence Data Center

Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond.  A long time favorite,  Team Cale...

82 views 0 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you