Hai every body
Actually this is custom tag related problem. i am  inserting the values
dynamically. but problem is in add form when i blank with filling any data
in to text boxes then i want show pop up message like " plese enter the
values " .  and same i don't want execute action of form (---inserting the
values code----).  means after entering the all values only i want to go to
action. so for that one i written following code. here i gave for every
attirbute requirefield is "yes" . i know in cfinput command,  message
property is not there.  

plese can any body help me ???


thanx
ramesh



<cfif isdefined('form.add')>


----inserting the values code-----

<cfelseif isdefined('form.abort')>

--- aborting code----

<cfelse>


<CFFORM ACTION="#cgi.http_script#" METHOD="post">
                
                                <cfquery name= "querya"
datasource="#ATTRIBUTES.datasource#">
                                        select * from #ATTRIBUTES.tablename#

                                </cfquery>
                                <cfset a=#trim(querya.columnlist)#> 
                                <cfset ln = ListLen(#a#)>
                                <cfoutput>
                                <cfloop from ="1" to ="#ln#" index="i">
                                <TABLE align="center">
                                 <cfset
fieldv=#Evaluate("ATTRIBUTES.heading" & i)#>
                                    <TR> 
                                      <TD width=#ATTRIBUTES.tdhwidth#><font
face=#ATTRIBUTES.fontface#  size=#ATTRIBUTES.fontsize#>#fieldv#</font></TD>
                                      <TD align="center"
width=#ATTRIBUTES.tdwidth#> 
                                        <CFINPUT TYPE="Text"
                                                     NAME="txta#i#" 
                                                    <cfif
"#Evaluate("ATTRIBUTES.requiredfield" & i)#" EQ "yes"> 
                                                    required="yes"        
                                                    </cfif>
                                                    >
                                        </td>
                                </cfloop>      
                                </TABLE>
                                <br>
                                <table align="center">
                                <tr><td align="left">
                                <input type = "submit" name= "add" value =
"Add"></td>
                                <td><input type = "submit" name= "Abort"
value = "Abort"></td></tr>
                                </table>
                                </cfoutput>
                
        </CFFORM>
</cfif>










Employee Id      <<...>>        

Name     <<...>>        

City     <<...>>        

Salary   <<...>>        

Address  <<...>>        

 <<...>> Add     Abort  


------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to