How to use display logic to remove an option based on date | XM Community
Skip to main content
Question

How to use display logic to remove an option based on date


Forum|alt.badge.img+3

I created an application for several trips for students in my program over the span of a few months. The idea is that as an event deadline passes, I want the option to RSVP for it to disappear. Is there a way to do this with display logic? Currently the display logic is based on an ExternalDataReference but that doesn’t seem to work. 

5 replies

Umang Upadhyay
QPN Level 4 ●●●●
Forum|alt.badge.img+20
  • QPN Level 4 ●●●●
  • 117 replies
  • January 10, 2024

Hi @Em Brace, can share the reference of your External Data Reference setup. We should be able to incorporate date setup in there as well.


Forum|alt.badge.img+3
  • Author
  • Level 2 ●●
  • 11 replies
  • January 10, 2024

I’m not sure I even know how to do that. 


Forum|alt.badge.img+1
  • Level 1 ●
  • 3 replies
  • January 11, 2024

Hi @Em Brace… 

 

  1. In the flow, Create a variable for the current date:

today=${date://OtherDate/Y/+0 year}-${date://OtherDate/m/+0 month}-${date://OtherDate/d/+0 day}

  1. Create a variable for the deadline

exp_date=2024-01-10

  1. Create Display Logic
    1. In Flow (At Block Level)

       

    2. At Question Level:

       

    3. MR Response Level: Same as above

Hope this helps!

 


Forum|alt.badge.img+3
  • Author
  • Level 2 ●●
  • 11 replies
  • January 11, 2024

@ccalvillo Ok, I think I know how to do this but I’m not sure “where to go” to do this. when you say “in the flow” do you mean in workflow or in the survey flow?


Forum|alt.badge.img+1
  • Level 1 ●
  • 3 replies
  • January 12, 2024

Sorry for the late reply @Em Brace, I meant in the survey flow. Also, it’s important to make sure the date is in the correct format YYYY-MM-DD. Send me a message if you need further help with this and I will continue to check back. 

 


Leave a Reply