cens/ohmageFrontEnd — Issue #203: update "only photo responses" checkbox in Response tab
Author: shlurbee
Created: 2012-02-11 16:36:30+00:00
State: open

The "only photo responses" filter was being applied on the front end (after fetching) in the Responses tab, but this strategy won't work with server-side paging since the number of responses after filtering is unpredictable and can't be matched to page size.

Instead, the front end should parse the campaign xml file, get a list of surveys that include at least one photo prompt, and use the survey_id_list api param to query the server for only responses from those surveys.

The photo checkbox should be enabled when "All" is selected in the survey dropdown and disabled when a specific survey is selected. (Otherwise there might be confusion if the photo box is checked and a user selects a survey that has no photo prompts.)