Please enable JavaScript to view this site.

iService Forms User Guide

Navigation: Form Commands > $IF

$IF -articlelist

Scroll Prev Top Next More

The -articlelist parameter is used to display a list of articles within a Find Answers page. It contains two options that are specified within parenthesis to indicate whether it is a list of articles for a topic (-articlelist(topic)) or for search results (-articlelist(search)). It is used with the -Ptopic (parameter topic) parameter to specify the topic for which articles will be listed.

 

Since you must supply the form with the ID of the Find Answers topic that is chosen or searched on to display results, this  command is usually referenced from another form or portion of a form that contains a list of topics with their IDs. Then, when that link is clicked the $IF -articlelist is used to show the list of articles within the chosen topic.

 

Basic Example when topic is selected:

$IF -articlelist(topic) -Ptopic'topicID'$

     The list of articles specified by Ptopic'topicID' would be shown here.

$Else$

     There are no articles for this topic

$EndIf$

 

 

In the example above, the value for topicID would have been passed from another link. However, it is possible to hard code the value for a specific topic, if desired, as shown below.

$IF -articlelist(topic) -Ptopic'95'$

     The list of articles for the topic with a topic ID 95 would be shown here.

$Else$

     There are no articles within topic 95.

$EndIf$

 

 

To form a fully functional Find Answers page, the $Value -articlelist command is used to present the details for the articles within the selected topics (e.g., article subject, etc.). See the Find Answers form example using these parameters for more information.