Select to view content in your preferred language

Survey123 select_one filter by field

604
2
Jump to solution
10-18-2023 11:02 AM
ChristopherMask
Regular Contributor

Hello Community,

I want to filter select_one_from_file ResourceRates.csv. to the current year, so the appropriate rate can be returned form the linked csv.

 

Purpose to use the field ${CalendarYear} to filter and only return rates where ${CalendarYear} = ${YearOfRate}. 

 

Is the possible using autocomplete search?

 

Christopher

 

 

0 Kudos
1 Solution

Accepted Solutions
ChristopherMask
Regular Contributor

set appearance to autocomplete

added this to choice_filter  selected(${CalendarYear},YearOfRate)

This worked and now rates for each year can be added to csv and the survey will filter out based on the year.

View solution in original post

0 Kudos
2 Replies
ChristopherMask
Regular Contributor

Can I do something like this?

autocomplete search('ResouceRates', 'matches','YearOfRate', ${CalendarYear})

 

0 Kudos
ChristopherMask
Regular Contributor

set appearance to autocomplete

added this to choice_filter  selected(${CalendarYear},YearOfRate)

This worked and now rates for each year can be added to csv and the survey will filter out based on the year.

0 Kudos