Modal Forms input (multi-select pages) to Links in YAML

What I’m trying to do

I’m making a template for journaling/diary, and I am using modal forms to help abstract the process into a simple form. I’m using Templater & Modal Forms to do so.

Some of my form’s fields are a multi-select that allows me to select a note from a folder (ex: people, places, pages). I want to take the result of those fields and turn it into links in the YAML header.

Currently, whenever I input multiple pages into these fields, my links clump up into this:
:x:"[[person1, person2]]“,
when I am aiming to get this:
:heavy_check_mark:”[[person1]]" “[[person2]]”.

Example of my properties when I input multiple results into the field:

Current Template:

Perhaps there is some way to separate them so I can link them independently?

Edit: in addition to the above problem, is there a way to “hide” a property if the form for it is left empty? Example:
Current: person: ""
Desired:
(should not show the property if empty)


Things I have tried

I sporadically jumped around the Modal Forms documentation, but I didn’t see anything regarding splitting up the result of multi-select fields.

I also searched for other forms on Reddit and here as well, but I didn’t find anything regarding my problem.

Desired Outcome:

I have exactly the same problem. Did you figure it out?