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.
I have the Property Value of Set Form Element Property to =`${$value1.result[$forEach1.pass]} \n` This returns [Object Object].
I have tried below syntax as well:
=`${$form1.state.text1}${$value1.result[$forEach1.pass]} \n`
This returns [object Object][objectObject]
I need to perform this task dynamically since there are are a various amounts of links needed per ID.
-
Add item has the following syntax:
={markdown: `* [${ $date1.formatted}](${ $forEach1.item.attributes.LINK}) \n`}
0 -
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 -
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
Please sign in to leave a comment.
Comments
3 comments