Quantcast
Channel: Adobe Community: Message List - ColdFusion
Viewing all articles
Browse latest Browse all 21760

Re: How do I get a button to show in a list only when a survey is filled?

$
0
0

Don't use an inner join:

 

<cfquery name="getsignups" datasource="#application.dsn#">

select signups.courseTitle,signups.property,signups.calendardate,signups.com pany,signups.firstname,signups.lastname,signups.email,signups.phone,s i gnups.userID,signups.signup_id,signups.rid,course_eval.userID,course_ e val.id

from signups LEFT OUTER JOIN course_eval ON signups.userID = course_eval.userID

where signups.rid = #rid#

</cfquery>

 

<cfoutput>

  <cfloop query="getsignups">

    <tr>

      <td>#rid# - #firstname# #lastname#  |   <a href="mailto:#email#">#email#</a></td><td>Ph: #phone#</td>

      <td width="24"><a href="showsignups.cfm?signup_id=#signup_id#&go=go" class="button">Remove</a></td>

      <cfif isdefined("id")>

        <td width="24"><a href="../../forms/surveys.cfm?userID=#userID#" class="button">Survey</a></td>

      </cfif>

    </tr>

  </cfloop>           

</cfoutput>

 

Use:

<cfif id neq "">

 

Message was edited by: Eddie Lotter (Typo)


Viewing all articles
Browse latest Browse all 21760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>