Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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

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
Community showcase
Published in Apps & Integrations

Marketplace Partner Spotlight: Fine Software

Happy New Year, everybody! What better way to kick off 2022 than with a new Marketplace Partner Spotlight ✨ This month, we're getting to know Daniel Franz, co-founder of Fine Software. Fine Software ...

422 views 2 15
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