# Dynamically generated Value Lists

**URL:** <https://community.bloomreach.com/t/dynamically-generated-value-lists/3412>\
**Category:** Experience Manager (PaaS/OnPrem)\
**Created:** [October 13, 2022, 1:31pm UTC](https://community.bloomreach.com/t/dynamically-generated-value-lists/3412 "2022-10-13T13:31:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hmay](https://avatars.discourse-cdn.com/v4/letter/h/65b543/32.png) [@Hmay](https://community.bloomreach.com/u/Hmay)\
**Post date:** [October 13, 2022, 1:31pm UTC](https://community.bloomreach.com/t/dynamically-generated-value-lists/3412/1 "2022-10-13T13:31:44Z")

</div>

I am looking to create a “Jump to latest” component in the BE which allows a user within the site to click a link and be taken to the latest content within that page. Ideally I’d like content editors to be able to add a “Jump to latest” component to a document, which has a dynamically produced dropdown based on the types of components they have already saved within the document. For example: should a document consist of Components A, B, C and D, the jump to latest component will dynamically render a dropdown with options for A, B, C and D. If component C is removed from the page, the list shall be updated to only include A, B, D within the Jump to latest component.

The selections plugins documented here: [Selection Field Configuration](https://documentation.bloomreach.com/content/docs/selection-field-configuration) are configured based on a fixed value list and not suited for this use case.

---

<div class="post-metadata">

**Author:** ![jasper.floor](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/jasper.floor/32/28_2.png) [@jasper.floor](https://community.bloomreach.com/u/jasper.floor)\
**Post date:** [October 13, 2022, 2:44pm UTC](https://community.bloomreach.com/t/dynamically-generated-value-lists/3412/2 "2022-10-13T14:44:49Z")

</div>

You linked to SaaS documentation, in which case I don’t think you can do it. In PaaS you can write a ValueListProvider class.

> **[Selections Plugin Configuration - Bloomreach Experience Manager...](https://xmdocumentation.bloomreach.com/library/concepts/plugins/selections/configuration.html)**
>
> The fast and flexible on-premise or PaaS headless CMS

---

<div class="post-metadata">

**Author:** ![Hmay](https://avatars.discourse-cdn.com/v4/letter/h/65b543/32.png) [@Hmay](https://community.bloomreach.com/u/Hmay)\
**Post date:** [October 14, 2022, 11:18am UTC](https://community.bloomreach.com/t/dynamically-generated-value-lists/3412/3 "2022-10-14T11:18:01Z")

</div>

Ahh apologies I added the wrong link . However, unfortunately this still wont work. We’ve used value list backed dropdowns elsewhere, but in this instance we need the values in the list to be dynamically loaded based on the elements saved on the page.

---

<div class="post-metadata">

**Author:** ![jasper.floor](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/jasper.floor/32/28_2.png) [@jasper.floor](https://community.bloomreach.com/u/jasper.floor)\
**Post date:** [October 14, 2022, 1:12pm UTC](https://community.bloomreach.com/t/dynamically-generated-value-lists/3412/4 "2022-10-14T13:12:35Z")

</div>

Ah, I don’t think that is achievable. You don’t have access to the right context in a provider class. Or any context really. It may be possible to hack somethign so you can still access the information you need, but it would be ugly and might easily break on upgrades. Not something I would want to recommend.

---

<div class="post-metadata">

**Author:** ![Hmay](https://avatars.discourse-cdn.com/v4/letter/h/65b543/32.png) [@Hmay](https://community.bloomreach.com/u/Hmay)\
**Post date:** [October 24, 2022, 12:16pm UTC](https://community.bloomreach.com/t/dynamically-generated-value-lists/3412/5 "2022-10-24T12:16:35Z")

</div>

Ah i see - thanks Jasper for the info!
