Hoppa till huvudinnehållet

Hello, Trying to post on a display form text description an array that contains a markdown of links based on asset ID that was queried outside of a for each activity. I know the set form element property allows to update the description.

Kommentarer

3 kommentarer

  • Ash Petitjean

    Add item has the following syntax:

    ={markdown: `* [${ $date1.formatted}](${ $forEach1.item.attributes.LINK}) \n`}

    0
  • Jostein Svegården

    It is really hard to see how you try to accomplish this without seeing all the details in your workflow. But I have a couple of comments.

    • I don't know what you put into the $value1. It seems like it is some kind of objects, since $value1.result[$forEach1.pass] returns an object. Maybe you want to "dot into" this object to get one of the object's properties, e.g. $value1.result[$forEach1.pass].someproperty
    • $form1.state.text1 will return an object as well. Maybe you want to access the text form element's description with $form1.state.text1.description, it's hard for me to say
    0
  • Ash Petitjean

    I was able to display my array by adding another form inside the click event. In this new form, I added a load event that did added a loop activity that looped through based on $forEach1.count. I was able to then add more text dynamically on the new form by adding an Add Form Element activity after an evaluate expression activity to create a unique id per loop pass. I then used a Set Form Element property that allowed me to set the array value to the description of each new unique Text.

    0

Du måste logga in om du vill lämna en kommentar.