How can I dynamically list only fields with values on a topic?
Lists fields on a topic (along with their values):
%JQREQIURE{"chili"}%
%STARTSECTION{"example"}%
%FORMAT{
"%QUERY{
"'%URLPARAM{"qtopic" default="%WEB%.%TOPIC%"}%'/fields.name"
}%"
type="string"
format="$percntIF{
\"'%URLPARAM{"qtopic" default="%WEB%.%TOPIC%"}%'/$item =~ '\w'\"
then=\" $ $item: $percntQUERY{'%URLPARAM{"qtopic" default="%WEB%.%TOPIC%"}%'/$item}$percnt\"
}$percnt"
}%
%ENDSECTION{"example"}%
Test:
- TopicTitle
- How can I dynamically list only fields with values on a topic?
- TopicClassification
- FrequentlyAskedQuestion
- Subject
- Data forms, Search