I'm having an issue where my autocomplete field dropdown list will not display when I have a javascript function referenced. In my form I have javascript which auto fills a field with the previous repeat's value. This process works fine in Survey123 Connect 3.16. However, I've moved to Connect 3.18 and I get this behaviour (I get the same behaviour in Connect 3.19 beta). When I remove the pulldata request the dropdown list works fine.
I notice that the only way I can get the drop list to work is to start typing and select a random option that is listed; when I delete this entry I am then able to see all dropdown options.
Is there a known issue or have I missed something? I've changed the javascript functions to very basic ops and still get the same behaviour. It seems the presence of the pulldata triggers the behaviour.
I've attached my test form which shows this behaviour. It's a subset of a much larger survey. The javascript functions I use are:
function getPreviousShotNumber(sampled_fish_repeat){ if (sampled_fish_repeat.length > 1) { return sampled_fish_repeat[sampled_fish_repeat.length - 2].shot_no_sample; } } function getPreviousCustomSpeciesSamp(sampled_fish_repeat, pos){ if (sampled_fish_repeat.length > 1 && pos != 1) { if(!sampled_fish_repeat[pos - 1].species_samp){ return sampled_fish_repeat[sampled_fish_repeat.length - 2].species_samp_custom; } } } function getPreviousRadioSpeciesSamp(sampled_fish_repeat, pos){ if (sampled_fish_repeat.length > 1 && pos != 1) { if(!sampled_fish_repeat[pos - 1].species_samp_custom){ return sampled_fish_repeat[sampled_fish_repeat.length - 2].species_samp; } } } |
Cheers,