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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,456,998
Community Members
 
Community Events
176
Community Groups

Using the Confiform Rule macro to filter a date drop down

Hi Team (Alex),

I have a form that has a drop down list for users to choose a date (we aren't using the Date Picker field type for other reasons), and we are trying to limit the dates shown using the Rule (Apply Filter on a Field) "Date:<=[today]+14".

This formula works if the date format is M/d/yyyy (short date)

But we want the date format to be EEEE, MMMM d, yyyy (long date)

I'm sure there is a simple solution to make the Rule work with the long date format, but I'm drawing a blank.

As always, any help or guidance is appreciated.

1 answer

Hi

Not sure ConfiForms understand the dropdown as the field "holding a date" and allows to user [today] and other shortcut date functions... 

I think you need to operate in timestamps, and convert the values from a drodpown to dates/timestamps

Consider the following example https://recordit.co/rkpfLgfAxk

Hope it helps

Team Alex :-)

Hi Alex,

Sadly this doesn't work.

I did leave out a crucial piece though. The dropdown is a smart dropdown referencing a date field with the format (EEEE, MMMM d, yyyy) (see below), so the data is recognized as dates.

The filter works when the date format is (M/d/yyyy), but doesn't work in our preferred date format. 

DatabaseField.jpgDateField.jpg

As you can see in the screencast - it works very well. Your case is completely different though 

The filter must be applied on Date3 field, not Date... as this is the field that contains the date. Date holds an ID to record, not a date

Alex

This is a screencast that demonstrates the same (and also use of [today] shortcut function) on filtering smart fields in ConfiForms

http://recordit.co/qNV7GKj9Np

Alex

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events