Display Tags based on Previous Selected Tags from a Data Collection.

@jonatandor35 Thank you, I’ll try to see if I can use this information.

But to clarify my main problem its actually displaying the tags from the dataset.
Just so you have a little visual of what I’m trying to do: The page where this will be taking place is not in a dynamic page, it will be from a members only page. the filter Tags you see under the Image here is where my problem is; I want to display tags only from the logged in Users Data already previously selected and stored. then I want those Tags to be used to filter the Gallery Repeater that will show a list of all Dynamic Pages by different users.

As of right now I use this code to display tags, but its not clean being an HTML code that breaks when there is a space and doesn’t maintain the tag as a whole. Example you can see where the tag breaks for “Emergency Response Units” if there is a way to display tags from a dataset using the Tags input element I’ll appreciated.


This is the code I’m using to Display these tags (Different from what I am working on)
$w . onReady ( function () {
let tags = $w ( “#dynamicDataset” ). getCurrentItem (). tags ;
let tagsHtml = tags . map ( tag =>
<span style="background: #ff0000; border-radius: 5px; line-height: 2.6; padding-top: 5px; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; margin-left: 0px; margin-right: 0px; text-align: center; color: #ffffff; font-weight: 700; font-size: 12px"> ${ tag } </span> )
. join ( ’ ’ );
$w ( ‘#displayTags’ ). html = tagsHtml ;
});