If Checkbox Selected Then Textfield Can't Be Empty
I am trying to what seems simple but can not get it to work. I am using Ultradev 4
I have a form that uses a checkbox to indicate weather a call has been closed or not.
However if the call has been closed then I need a resolution text field to contain data.
ie: If checkbox selected then resolution textfield can't be empty.
I've tried yaromats check form extension but it DOES NOT work as I am using a multiline text field. The extension works for a sinle line textfield but not a multiline.. I don't know why?
As a result I don't get the option to select this field using the "This must be checked to" option in Yaromats extension.
View Replies
ADVERTISEMENT
i have a form with 2 textbox and 2 buttons if i push the 2nd button it summits the form to a process page and add both textbox info into a database( with the check if they are empty), this because the form action is set to go to that page.
but i want the 1st button to do a test if the 1st textfield is empty and if is not i want it to post just the value of the first textbox to another page(process2).
i've got the 2nd button working allright but i dont know how to so set up the code to the first button.
View Replies
View Related
I'm using an Access database connected with an ASP
website. I keep having the same problem:
Example:
when field Name (text) from tblcustomers is empty, I
do not want to show this one..
IF (qryRandom("name") = "") THEN
respone.write ("its empty!")
ELES
respone.wirte ("its filled!")
END IF
why do I keep getting 'its filled' when it is empty
any suggestions?
View Replies
View Related
I am trying to make several fields in a HTML form validated, but only
when a dynamic checkbox is selected. I am not sure how to do this.
Here is a snippet of the dynamic checkbox code:
<%
Set RSLIST = Server.CreateObject("ADODB.Recordset")
SQLLIST = "SELECT * FROM Newsletters ORDER BY Newsletter_Name"
RSLIST.Open SQLLIST, Conn, 1, 3
%>
<%Do While Not RSLIST.EOF%>
<input type="checkbox" name="Newsletters"
value="<%=RSLIST("ID")%>"><%=RSLIST("Newsletter_Name")%>
I would like to make three fields (company, phone_work, license)
mandatory when one of the "ID" (i.e. ID 2) is checked.
View Replies
View Related
how to display the complete data on a textfield?
for example... the data in my datafield is "BROWN DOGS" but when I viewed it on my asp page it will only display "BROWN" do you have any idea on how I could display the whole content? my source code is this -->
<input name=dog_description value="&rs("dog_description")&" size=50>
View Replies
View Related
how to input textfield in popup window to search from a database and generate the report in another page?
View Replies
View Related
I have 4 radio buttons and beside each radio button I have a textfield. When a certain radio button is selected, only the text field beside it becomes enabled and the rest of the text fields are disabled. What I would like to do is to be able to change the background color of the text fields so they are grey if they are diabled and white if enabled.
View Replies
View Related
some vbscript coding on on the server side which states sumthing on the lines of if chkbox is checked then textfield should be not null.
View Replies
View Related
i'm trying to create a textfield with up and down arrow at the side using vbscript
and asp. anyone know how to do that?
View Replies
View Related
I would like to provide the text field to let the user key in the email address. How to ensure that they at least will key in the "@xxx.com"?
View Replies
View Related
I have a bunch of text fields that the user tabs through. How would I go about calling a function when a specific textbox loses focus so that when they tab out I can make a pop up and allow them to select some info
View Replies
View Related
I have javascript calander in the form of three list boxes (day, month, year). when selected I would like the values to put into a text field in Dreamweaver so I can then submit to the database. Is this possible and how could it be achieved.
View Replies
View Related
I'm trying to retrieve the name of a textfield, instead of it's value. I'm using a html page with a very simple form, containing 8 textfields. When submitted I call an asp page, and from that page I want to retrieve the textfield names from the submitted form.
Does anybody have an idea how the do this? It's for entering value's into an xml file and i want to use the textfield name's for naming the new xml elements.
View Replies
View Related
Any sort of related article, tutorial,
Topic : Searching Listbox via Textfield
View Replies
View Related
how do i retian values in the textfield even after it is submitted ? Like for example, when you fill out most application forms, after submitting if there is an error it redirects you back to the first page alerting you of the error but the other values still remain. I would like to incoporate this function. where i can find them ?
View Replies
View Related
how do i retian values in the textfield even after it is submitted ?
Like for example, when you fill out most application forms, after submitting
if there is an error it redirects you back to the first page alerting you of the error but the other values still remain..
View Replies
View Related
Does anyone have any idea if you can set the value of a hiddenfield to be that of a textfield on the same page, when submitted?
View Replies
View Related
Can anyone advice if the following is possible: -
...srch=my&srchlist=search+query&submit=search....etc
srch and srchlist are the names of a textfield, and list/menu
Is it possible to amend the URL, so that the URL QS reads
...srch=my+search+query&submit=search....etc
strSrch = Trim(Request.QueryString("srch")) &" "& Trim(Request.QueryString("srchlist"))
This is the snippet I use to achieve the above example, which is fine, when I use this snippet, and make the &""& without space between the quotes, then it returns: -
...srch=mysearch+query&submit=search....etc
View Replies
View Related
I am trying query the data from db and populate in the web form's textbox field. so far I cannot put that record into the text field box. anyone has idea on that, below is my sample code:
View Replies
View Related
How to bind a drop down list to a textfield??? I want the textfield value to change for every different option selected in the drop down list.
View Replies
View Related
Drop down value is selected and a query is performed on that value - I want the selected value to stay in the drop down field. Right now it goes back to the first value in the list once the submit button is clicked (it queries correctly).
When I come into the page there should be no value in the drop down list and when a value is selected it should stay in the field.
View Replies
View Related
I have a form named: 'formhandheld' and a select with the name: 'pricing_option'.
I'm trying to make the select <option> thats based on 'axDD3current' selected.
what's the code ? Probably more of a JavaScript question than ASP
document.formhandheld.pricing_option.options[<%=axDD3current%>].selected;
the above doesn't work
View Replies
View Related
I have 2 drop down lists here. Supposingly, upon the selection of the 2nd drop down list, I should be able to see textbox entry allowing user to update data being displayed at the bottom. But in my case here, i see no response upon the selection of "selType" which is my second drop down list.
But both also don't work. So any suggestion on how can I retrieve the 2nd drop down list' selected value
View Replies
View Related
I have combobox that those value is based on my database. So i want to get the selected value in order to do another matching for the SQL statement. May i know how to get it? Is it just use for example WHERE column=' "&combobox&" '? use the combobox name.
View Replies
View Related
I have an aspx file where i've put a placeholder element. On load i create
dynamically a table which contains a checkbox and a radiobuttonlist in each
tablerow . The radiobuttonlist contains two items (yes,no). Both the
checkboxes and the radiobuttonlist are NOT autopostbacked ( .autopostback =
false).
When i press the submit button a sub is run. My problem is that i can
not get the selected items in the radiobuttonlists.This is caused cos in the
page_load i call the sub that dinamically recreates the table described above
and so all values are reset (there is a rdb.item(0).selected=true line in my
code.
If i try to remove it, the radiobuttons keep their values or not,after
each submit, without a pattern!). I've also tried to keep the values in a
collection, instasiated in the page_load but i couldn't do so cos the table
(that contains the checkboxes and radiobuttonlists) is not recognized at the
beggining of the page_load (i guess it's not an object yet cos the sub that
creates all that is at the end of page_load)....
View Replies
View Related
By ASP
How can I get the dropdown(control'name)'s selected value?
What is it's property'name
View Replies
View Related
sourinsen is correct. that's the way to split values in your combobox.
View Replies
View Related
I have a drop down select box that gets filled from database. I have to add "All" to this list which does not come from database. Also the default selected value should be the second value that is stored in array. For ex I have array of Countries names as America, Indonesia,china, Canada. My array gives me the value Myarray(intcount,0)(intcount,1) as America and so on (two dimensional array).
I want Indonesia as the default selected value when the page loads. Also I need to hardcode All at the end. Upn submitting the form the selected value fromthe drop down should get selected.
View Replies
View Related
I've got this listbox and this text field on an ASP page. Now I want the item I click on in the listbox to appear in the text field and I can't find the code nowhere for what seems to me such an easy thing to do.
View Replies
View Related
i need to get the selected value of dropdown from one page and i want it to be displayed in another page.
For that i used the below cade:
<%= request.Form("country") %>
country - drpdown name
But its not getting displayed.
View Replies
View Related
I am displaying few values in a List box. I would like to put first item as selected by default. i.e <option value="some value" selected>Name</option>
Here is my code.
<SELECT size=15 id=select1 name=select1>
<% do while not Rs.EOF %>
<Option value=<%=Rs("value")%>><%= Rs("Name") %></Option>
<%
Rs.MoveNext
loop
%>
</SELECT>
View Replies
View Related
I have an asp-page where I want the user to make a selection with a listbox. When the user changes to another listboxelement the page gets reloaded and depending on the selection a different content is shown.
I got this working so far but when the page has been reloaded the listbox always displayes the first selection in the list and not the one which the user selected. Code:
View Replies
View Related
I have different templates for different companies to be sent to the customer. first i get all the templates from the DB by giving: Select templates from tempates;
Now i want the user to select one..may be we can have a radio button displayed near the textarea in which i will be displaying the templates from DB. Once the agent selects one of the templates to be sent,that template should be sent as an email to the customer.
How do i go on achieving this ,with good formatted template in the DB?
View Replies
View Related