Hey Acoder,
Well i like your idea so i added a button so now when they click on the button it inserts.
I am only running into 1 last problem. The thing with the customer number is that it appears on 2 pages. The first page is where you fill it out. An then the second page is where you view what you had typed in on the first page and also make changes in case of an error. The problem i am having is on the 2nd page.
If i do not select something from the drop down box an instead create a new customer number and click submit on the first page. Then on the second page it will bring up an error saying the form field can not be found (for the drop down box). An was wondering how could i give it the value of nothing if a value in the drop down box is not selected?
here is what i got in the form
Thank you in advance for all the help :),
Rach
Well i like your idea so i added a button so now when they click on the button it inserts.
I am only running into 1 last problem. The thing with the customer number is that it appears on 2 pages. The first page is where you fill it out. An then the second page is where you view what you had typed in on the first page and also make changes in case of an error. The problem i am having is on the 2nd page.
If i do not select something from the drop down box an instead create a new customer number and click submit on the first page. Then on the second page it will bring up an error saying the form field can not be found (for the drop down box). An was wondering how could i give it the value of nothing if a value in the drop down box is not selected?
here is what i got in the form
Code:
Customer Number*:<input type="text" name="custnum" value="#Form.custnum#" id="clientID" ONKEYUP="autoComplete(this,this.form.customer,'value',false)" onChange="validate(this.form.custnum,'Customer Number')"/></cfoutput> <SELECT NAME="customer" id="options" onChange="this.form.custnum.value=this.options[this.selectedIndex].value;javascript:getClientData();"> <cfoutput query="getcustnum"> <option value="#fk_custNum#" <cfif #fk_custNum# is #form.customer#>selected</cfif>>#fk_custNum#</option> </cfoutput> </SELECT> <input type="button" class="custnum" name="insert" value="Insert Contact" onclick="javascript:getClientData();">
Rach
Comment