Pulldata using select_one form field

What are you trying to achieve or report?

I am trying to pull data from a .csv. The look-up field in the form that I am building is a single-select

What’s happening instead?

If I change the look-up field in the form that I am building to a text field instead of single-select, the look-up works. However, it doesn’t work when I change the look-up field back to single-select, which is what I need it to be.

The calculation I’m using is:

pulldata(‘baseline’,‘strategicgap’,‘networkname’,${nameofnetwork})

where ‘baseline’ is the name of the .csv file, ‘strategicgap’ is the column name of the data I’m trying to pull, ‘networkname’ is the column name of the look-up value in the .csv file, and ${nameofnetwork} is the name of the look-up field in the form I’m building

CAFI coordinator endline.xlsx (17.8 KB)

caficoordinatorbaseline.csv (2.0 KB)

Here are the .csv file and the form .xls for reference

@eleanorn
Thanks for sharing. I’ll review this and get back to you shortly.

@eleanorn
You should use jr:choice-name() to retrieve the choice labels rather than the XML values stored in your choices.
Check the images as a reference