Thank you

I also need a way to do the following:

IF the value submitted is not in the list, disable the field and give it a NULL 
value.

I know how to do the list find in CF and I know how to disable a field and make 
it NULL with JS, but I am having a hard time putting the two together.

Here is an example of some of my code:

<SCRIPT LANGUAGE="JavaScript">
function checkValue()

{ 
var testVar="me1,me2,me3,me4,me5,me6,me7,me8,m9"
var valueTest = ListFind(testVar, form.me)

with(document.forms.testForm) 
 {
                 
                if(valueTest eq 0) 
                {
                me.disabled = true;
                me.style.background = "whitesmoke";
                me.value="NULL"
                }
                else
                {
                 me.disabled = false;
                 me.value="form.me"
                }
                
        }
}
</script>



>ListFind() will find a value in a list. If you have to make the form field 
>null then just setting form.fieldname="" will work. If you have to make the 
>listitem null, then listdeleteat() will do it using the location from the 
>listfind() as the item to delete.
>
>
>
>>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:15:1685
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/15
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:15
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to