how to use [l=list.pickOne] across html and list editor?

My two generators https://perchance.org/build-a-movie#edit and https://perchance.org/build-a-musical#edit require an item to be chosen in the lists editor and then the same item transferred to the html list. The only problem is IDK HOW TO DO THIS!!!

Someone please help.

3 points · 3 comments · view on lemmy.world

3 Comments

Koto@lemmy.world · 2 pts · 1y

https://perchance.org/hm20ndlb7m Not sure if you meant like this, a dropdown to choose from the list of genres. In perchance lists, the correct syntax to choose one is [list.selectOne] to choose one. You can assign it to a variable that you can later use, for example:[selectedGenre=genre.selectOne].

VioneT@lemmy.world · 2 pts · 1y (1 reply)

What you can do is this:

// Lists Editor
movieTitlePrompt
  instruction = Make a title for a [g = genre.selectOne] movie with a length of [l = length.selectOne] and an age rating of [ar = ageRating.selectOne]. Only include the title, nothing else. No subtitle.

title
  [ai(movieTitlePrompt)]
// ---
// HTML
<p>Title: [title]</p>
<p>Genre: [g]</p>
<p>Length: [l]</p>
<p>Rating: [ar]</p>
DreamscapeDancer@lemmy.world · 1 pts · 1y

thanks, i didn't even know i confused them