# Add Listview Data to filter element in Multipleinputform ++

**URL:** <https://forum.dynamobim.com/t/add-listview-data-to-filter-element-in-multipleinputform/79430>\
**Category:** Revit\
**Tags:** ui, dynamo, userinterface\
**Created:** [August 2, 2022, 2:29pm UTC](https://forum.dynamobim.com/t/add-listview-data-to-filter-element-in-multipleinputform/79430 "2022-08-02T14:29:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![s.othman](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/s.othman/32/143648_2.png) [@s.othman](https://forum.dynamobim.com/u/s.othman)\
**Post date:** [August 2, 2022, 2:29pm UTC](https://forum.dynamobim.com/t/add-listview-data-to-filter-element-in-multipleinputform/79430/1 "2022-08-02T14:29:11Z")

</div>

Hello , I’am working on creating a script that help me add suffixe and prefixe to viewtemplates , but what I want to do is to filter the viewtemplates because I don’t want to add suff and Prefixe to all of them , but I couldn’t understand the UI Listview Data because this is my first time that I create a script with a UI,  
here below is my script and how it’s appearing

 ![add suffix & pref viewtemplate_2022-08-02_04-22-56](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/7/a7e4958195cd7e5fd769a7ccb3fbb68e6ea9dafb.png)

---

<div class="post-metadata">

**Author:** ![s.othman](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/s.othman/32/143648_2.png) [@s.othman](https://forum.dynamobim.com/u/s.othman)\
**Post date:** [August 2, 2022, 2:29pm UTC](https://forum.dynamobim.com/t/add-listview-data-to-filter-element-in-multipleinputform/79430/2 "2022-08-02T14:29:59Z")

</div>

and here is how I want it to be :

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/2/92eaf1cf59b7c10e9de4e2847a32976774476ef7.png)

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [August 2, 2022, 3:43pm UTC](https://forum.dynamobim.com/t/add-listview-data-to-filter-element-in-multipleinputform/79430/3 "2022-08-02T15:43:55Z")

</div>

Can you post a new screenshot using the Export as Image feature? Make sure the node titles are visible and all pertinent node previews are pinned or have Watch nodes.

What you need to add is a `ListView` input with all view templates from your model. You can get these by getting all elements of category `View`, and then filtering those that are a template (`IsViewTemplate`).

---

<div class="post-metadata">

**Author:** ![s.othman](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/s.othman/32/143648_2.png) [@s.othman](https://forum.dynamobim.com/u/s.othman)\
**Post date:** [August 2, 2022, 3:55pm UTC](https://forum.dynamobim.com/t/add-listview-data-to-filter-element-in-multipleinputform/79430/4 "2022-08-02T15:55:42Z")

</div>

Here is another screenshot

 ![add suffix & pref viewtemplate_2022-08-02_05-54-45](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/7/07476e5268213383a7f07f936e1a86e20b27360f.png)

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [August 2, 2022, 4:20pm UTC](https://forum.dynamobim.com/t/add-listview-data-to-filter-element-in-multipleinputform/79430/5 "2022-08-02T16:20:54Z")

</div>

You need to put the `ViewTemplates` as the keys and values to the `ListView` input so you get the selections only.
