Allow HTML in iterator (textMode) | Community
Skip to main content
Sven-iX
New Participant
October 5, 2024
New

Allow HTML in iterator (textMode)

When using valueexpression in an iterator, I'd like to be able to emit simple HTML concatenated with object attributes to, e.g. create an img tag or a link. 

Currently a valueexpression is printed as string, not HTML

 

Usecase

On certain tasks we attach documents (images), usually 1, sometimes 2. 

In a task report I'd like to see the thumbnails of these attachments. 

 

I can iterate over documents but I can't display a thumbnail. Using HTML would address that: 

valueexpression='<img src=/internal/document/thumbnail?build=&size=MEDIUM&documentVersionID='+{currentVersion}.{ID}+'&ID='+{ID}+'/>'

listdelimiter=<hr/>

listmethod=nested(documents).lists

valueformat=HTML

textmode=true

type=iterate

 

additionally I'd like to do the same in plain valueexpression statements (ie no iterator) but Workfront parses the string and when it detects <img or <a it emits as string, not HTML