Please enable JavaScript to view this site.

iService Forms User Guide

Navigation: Form Commands > $IF

$IF -checked

Scroll Prev Top Next More

Used within a repeat to determine if a value is checked. This is required when custom HTML is used because the HTML input tag will not know if the iService value is checked. This currently only works within a $repeat for an input checkbox on subscriptions  (Mailing Lists, Campaigns, and Find Answers Articles). This can be used when there is special styling required for the checkbox next to a mailing list, for example, when using JQuery Mobile or other styling that requires HTML.

 

Example:

$repeat -myaccountarticles$

 <tr>

   <td>$value -myaccountarticle(topic)$</td>

   <td>$value -myaccountarticle(subject)$</td>

   <td>$input -id'article' -myaccount(article) -customHTML$</td>

       <input name="article" $If -checked$checked="checked"$EndIf$>

 </tr>

$endrepeat$