Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Using CF to check if IW_value or parameter Exists
System
I'd like to know how we can check to see if a value within an Iterate has been filled in or not in order to control how the page will be displayed. In this case, if a value is entered, then a second column and table would be placed on the page. If not, then the main table would span one column instead of two. I know this can be done with CF, but is there anyway we can do it via IW in TPLs?
Code snippet is below:
<iw_case value='Wholesale Services'>
<![CDATA[
<CFOutput>
<CFIF ParameterExists("'<iw_value name='doctest.Supporting Documents'/>'") IS "Yes">
<tr><td colspan="2"><span class="header-page">Financial Services</span><br>
<span class="header-topic">Wholesale Services-zzz</span><br>
<cfinclude template="../Wholesale/WholesaleNav.cfml">
</td>
</tr>
<CFElse>
<tr>
<td><span class="header-page">Financial Services</span><br>
<span class="header-topic">Wholesale Services-z</span><br>
<cfinclude template="../Wholesale/WholesaleNav.cfml">
</td>
</tr>
</CFIF>
</CFOutput>
</iw_case>
</iw_ifcase>
Find more posts tagged with
Comments
kailash1
you can use iw_if to do it. Please go through example directory provide in your iw-home directory.
Regards
Kailash