Reply to topic
Thanks for taking a look
swhiteforever


Joined: 22 Mar 2005
Posts: 5
Reply with quote
The code below is two of scores of trying to get any kind of conditional to work. Now I can bind an entry from one of the other pages just fine, but there are six pages of options for a user to build a complex query and I want to just display the options they chose on the 'verify' tab if they want to check it before they submit for processing. I''ve tried trim() with and without len() testing for zero. The one below was aimed at just seeing if i could get it to work the conditional.

I know it is something I'm missing in syntax, 'Bind' would be pretty a useless concept if you cannot check for a value such as a particular string, zero length, checked or unchecked box, selected or unselected radio button etc..

I hope someone knows how to do it because I am now obsessed with having this tab work instead of a workaround (which would involve pulling a confirmation page up).

Thanks,
Stephen@cisdirect.com


***** This is one I tried for binding to a cfformitem, I tried all kinds of varible calling such as "form.SISCd" and #form.SISCd# etc.. I think I can stick a NOT in there and it will test positive everytime and plop the lable with or without label... ****


<!--- tab six --->
<cfformgroup type="page" label="Verify Count Criteria" height="283">

<CFIF ({SICCd.text.length} GT 0)>
<CFSET a="b">
</CFIF>

<CFIF IsDefined("showf")>
<cfformgroup type="horizontal">
<cfformitem type="Text" name="SICCd" bind="SIC Code: {SICCd.text}"></cfformitem>
</cfformgroup>
</cfif>

</cfformgroup>


***** This is one I really wanted so that the user could change a previously filled in entry on the fly. More work on the processing side to see if they went with the originally filled out input and then changed it here but would make the user experience top notch. Most of my users are constantly repeat users and will know most of the choices by memory. ****

<!--- tab six --->
<cfformgroup type="page" label="Verify Count Criteria" height="283">

<CFIF ("form.SCCd" EQ "This is a Test")>

<cfformgroup type="Horizontal" label="">
<cfinput type="text" name="SICCdVer" label="SIC Code" bind="SIC Code: {SICCd.text}">
</cfformgroup>

</cfif>


</cfformgroup>
Josh
Forum Regular

Joined: 01 Apr 2004
Posts: 1047
Location: Felton, Delaware
Reply with quote
If I'm not mistaken this is the wrong forum for that... and you shouldn't just attempt to hijack a thread if this was in fact intentional.
loftboy
Forum Regular

Joined: 24 Jun 2004
Posts: 1129
Location: Colorado
Reply with quote
does this work?

<CFIF SICCd.text NEQ "">
<CFSET a="b">
</CFIF>

or
<CFIF form.SICCd NEQ "">
<CFSET a="b">
</CFIF>


double quotes means the field is empty
loftboy
Forum Regular

Joined: 24 Jun 2004
Posts: 1129
Location: Colorado
Reply with quote
btw~ scott cfforms allow you to do validation onBlur, client-side or server-side or all of them or any combo and thats on any form, reg html, xml or flash
hijacking thread
swhiteforever


Joined: 22 Mar 2005
Posts: 5
Reply with quote
Josh, I beg your pardon.

I was not intending to do anything wrong. I searched on my problem and this thread came up. Flash defined form types were the main topic for the last several weeks on this thread and I thought that I would ask you guys if you had any idea what my problem was.

I will be more careful in the future and again sorry for the intrusion. I re-posted on the main forum and Loftboy has been nice enough to try and help me.

Stephen
loftboy
Forum Regular

Joined: 24 Jun 2004
Posts: 1129
Location: Colorado
Reply with quote
hehe yeah josh!
**** u'd think he still thinks he's an admin!! haha jk
he's just mad cause cfmx 7 has cool new toys! Wink
Josh
Forum Regular

Joined: 01 Apr 2004
Posts: 1047
Location: Felton, Delaware
Reply with quote
CFMX 7 does have neat toys... but it'sl still crap Wink j/k
loftboy
Forum Regular

Joined: 24 Jun 2004
Posts: 1129
Location: Colorado
Reply with quote
lol yup and built by a company that u can actually trust, unlike that other unnamed company.............

cant wait 4 my mac to get here whoo hoo!!
gunna be a piece lol
bobum
Elvis Fanatic
Elvis Fanatic

Joined: 16 Nov 2004
Posts: 746
Location: Montgomery, AL
Reply with quote
Installing Fedora Core 3 this weekend on a desktop for the house...wish me luck!
loftboy
Forum Regular

Joined: 24 Jun 2004
Posts: 1129
Location: Colorado
Reply with quote
good luck!

I found a g3 power mac blue & white on ebay and picked it up for $70, from what i have read they are actually pretty decent but u gotta upgrade the harddrive (only has a 6gb) and the ram and throw OSX on it and it will run like a champ, I have all that but the ram, so like $50 for 512mb & i've spent $120 lol

I wanna really try one before shellin out 5k for a good one!
Password protecting folder?
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 4 of 4  

  
  
 Reply to topic