# Template #Prompt Question

**URL:** <https://clarionhub.com/t/template-prompt-question/7993>\
**Category:** questions\
**Tags:** templates\
**Created:** [March 8, 2025, 9:31pm UTC](https://clarionhub.com/t/template-prompt-question/7993 "2025-03-08T21:31:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChrisBos](https://clarionhub.com/letter_avatar_proxy/v4/letter/c/e495f1/32.png) [@ChrisBos](https://clarionhub.com/u/ChrisBos)\
**Post date:** [March 8, 2025, 9:31pm UTC](https://clarionhub.com/t/template-prompt-question/7993/1 "2025-03-08T21:31:13Z")

</div>

I am creating a Template with a #Prompt:  
#Prompt('Table:',From(%file)),%thistfile that choses a single file.  
A second #Prompt:  
#Prompt('Select Fields',From(%field)),%fieldList,Selection('Field Selection') does not populate the selection list. How do I make %field dependent upon %thisfile?  
If I skip this I can list ALL fields with:  
#For(%file),WHERE(%file = %thisfile)  
#For(%field)  
...

---

<div class="post-metadata">

**Author:** ![RobertoArtigas](https://clarionhub.com/letter_avatar_proxy/v4/letter/r/9d8465/32.png) [@RobertoArtigas](https://clarionhub.com/u/RobertoArtigas)\
**Post date:** [March 8, 2025, 9:58pm UTC](https://clarionhub.com/t/template-prompt-question/7993/2 "2025-03-08T21:58:14Z")

</div>

You will need to create a %multi-fieldlist structure and will have to do the #FOR as you are doing above and add the fields to this %multi-fieldlist.You can put these in a BUTTON to see them, and then you can select the field from the list into whatever you are going to use them.

There are a number of examples in the standard clarion templates that do this. And a bunch of vendors, and/or free templates written by a number of authors do this. Just search with KSS the standard template space and you will find something you can modify.

Good luck.

---

<div class="post-metadata">

**Author:** ![ChrisBos](https://clarionhub.com/letter_avatar_proxy/v4/letter/c/e495f1/32.png) [@ChrisBos](https://clarionhub.com/u/ChrisBos)\
**Post date:** [March 8, 2025, 10:13pm UTC](https://clarionhub.com/t/template-prompt-question/7993/3 "2025-03-08T22:13:18Z")

</div>

Thanks, Roberto; I appreciate your help and the quick reply. I’ll see what I can do with that.

---

<div class="post-metadata">

**Author:** ![CarlBarnes](https://clarionhub.com/user_avatar/clarionhub.com/carlbarnes/32/1859_2.png) [@CarlBarnes](https://clarionhub.com/u/CarlBarnes)\
**Post date:** [March 8, 2025, 10:29pm UTC](https://clarionhub.com/t/template-prompt-question/7993/4 "2025-03-08T22:29:42Z")

</div>

This post may help

> [@Template #PROMPT with FIELD doesn't show all fields](https://clarionhub.com/t/template-prompt-with-field-doesnt-show-all-fields/7921):
>
> I have a template that requries a BrowseBox(ABC). I wanted to limit the available selections to the primary file, so I used this approach. #PROMPT(‘Field2’,FIELD(%Primary)),%CpField However, this does not list the fields inside the DateTime structures, and these are the fields I needed here. I have workaround without scope, but ideally I would like to limit available fields to those that are both in the primary file and visible in the listbox Should I build a list from %ControlField?
