Hi there
I am trying to use a csv to pre-populate my form.
Below is a small part of the csv called “selections”
select_key
vehicle_key
vehicle
generator_key
generator
operations_key
operations
planning_key
planning
1
CY41MM_GP
CY41MM GP
YDP014_GP
YDP014 GP
Myller
Muyler
Quenni
Quenni
2
DH72DC_GP
DH72DC GP
TMZ126_GP
TMZ126 GP
Vuyana
Vuyana
Enriber
Enriber
And here is my choices list
list_name
setManually
order
name
label
operations_name
TRUE
operations_key
operations
vehicle
TRUE
vehicle_key
vehicle
generator
TRUE
generator_key
generator
planning_name
TRUE
planner_key
planning
core_name
TRUE
core_key
core
And the survey: (The formatting seems to have gone to pot… Sorry)
hint required type name label relevant appearance calculation
Select your Name true select_one operations_name operations_name Operations ${department} = ‘Operations’ quick search(‘selections’)
Select your Name true select_one planning_name planning_name Planning ${department} = ‘Planning’ quick search(‘selections’)calculate vehicle_key pulldata(‘selections’,‘vehicle’,‘select_key’,${Vehicle})
calculate generator_key pulldata(‘selections’,‘generator’,‘select_key’,${Generator})
calculate operations_key pulldata(‘selections’,‘operations’,‘select_key’,${operations_name})
calculate planner_key pulldata(‘selections’,‘planning’,‘select_key’,${planning_name})
What I am trying to do, is to dynamically pull in the selection to my survey, but it absolutely refuse.
Without the “pulldata()” function, I at least get some selections, but the wrong values. From what I’ve read, it should be fairly simple. I think my problem lies in how I do the pulldata(), but have no idea how to fix it.
Regards