# add or link 2 surveys to a playbook

**URL:** <https://forum.ansible.com/t/add-or-link-2-surveys-to-a-playbook/37049>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [August 29, 2022, 8:30pm UTC](https://forum.ansible.com/t/add-or-link-2-surveys-to-a-playbook/37049 "2022-08-29T20:30:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bill\_Biker](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/bill_biker/32/8087_2.png) [@Bill\_Biker](https://forum.ansible.com/u/Bill_Biker)\
**Post date:** [August 29, 2022, 8:30pm UTC](https://forum.ansible.com/t/add-or-link-2-surveys-to-a-playbook/37049/1 "2022-08-29T20:30:18Z")

</div>

Hello AWX Project,  
I have code that works (finally), it creates a playbook, and creates a survey and survey spec  
I use jinja code to create the survey. I used the awx.awx.job\_template modlue to do this.

This survey shows a list of directories. each directory has from 1 to a few files.

I would like to be able to select a directory from the first survey, and then select a file from the second survey that is in the directory. The jinja code splits out the slashes in the path name.

I have tried to use the “survey\_spec:” variable two  
times, but that does not seem to work,

any tips?

ewholz

---

<div class="post-metadata">

**Author:** ![AWX\_Project](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@AWX\_Project](https://forum.ansible.com/u/AWX_Project)\
**Post date:** [August 30, 2022, 11:14am UTC](https://forum.ansible.com/t/add-or-link-2-surveys-to-a-playbook/37049/2 "2022-08-30T11:14:02Z")

</div>

At this time, AWX does not support dynamic surveys where you could change a second field based off a first field. Nor does it support secondary prompting based on the input of a first survey.

-The AWX Team

---

<div class="post-metadata">

**Author:** ![Bill\_Biker](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/bill_biker/32/8087_2.png) [@Bill\_Biker](https://forum.ansible.com/u/Bill_Biker)\
**Post date:** [August 30, 2022, 3:50pm UTC](https://forum.ansible.com/t/add-or-link-2-surveys-to-a-playbook/37049/3 "2022-08-30T15:50:22Z")

</div>

OK Thanks - that is very clear to me!
