**1. What is the issue? Please be detailed.
Pulldata and instance lookup, both failed to return value when:
${participant_name} is a calculated value eg. concat()
**
pulldata('participants', 'phone_number', 'name', ${participant_name})
instance('participants')/root/item[name= ${participant_name}]/phone_number
**2. What steps can we take to reproduce this issue?
Given** participant_name with calculation concat($first_name}, ' ',${last_name}) and trigger $first_name},${last_name}**
Test 1: Lookup field1, with same trigger** $first_name},${last_name}
pulldata('participants', 'phone_number', 'name', ${participant_name})
Test 2: Lookup field2, with same trigger $first_name},${last_name}
instance('participants')/root/item[name= ${participant_name}]/phone_number
Test 3: Lookup field3, with same trigger $first_name},${last_name}
pulldata('participants', 'phone_number', 'name', concat($first_name}, ' ',${last_name}) )
Test 4: Lookup field4, with same trigger $first_name},${last_name}
instance('participants')/root/item[name= concat($first_name}, ' ',${last_name})]/phone_number
3. What have you tried to fix the issue?
Limited knowledge from ODK Docs AI, documentation and forum
If lookup based on select_one :
The true() in the choice_filter column for the select_one in the example above is necessary to be able to look up participants' phone numbers. This is currently needed to overcome a pyxform bug.
https://docs.getodk.org/form-logic/#dynamic-defaults-from-form-data
Concat can be used as second parameter of pulldata, supported in odk but not enketo.
Strange Enketo Error ( Form Logic error ) - Support - ODK Forum
4. Upload any forms or screenshots you can share publicly below.