ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old July 30th, 2003, 09:40 AM
rwaldron rwaldron is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 2 rwaldron User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 m 40 sec
Reputation Power: 0
Unhappy If checkbox selected then textfield can't be empty

Hi all.. Please help.
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. Does anyone know away around this please.

Ray

Reply With Quote
  #2  
Old July 30th, 2003, 12:03 PM
unatratnag unatratnag is offline
Average Intelligence
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2003
Location: Ohio/Chicago
Posts: 678 unatratnag User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 22 sec
Reputation Power: 6
Send a message via AIM to unatratnag
I don't know how to use ultradev, but do you know scripting? You could try and do this

<script>
funtion setfoc(){
textbox.focus();
}

function Fill() {
var f = textbox;
if (f.value.length == 0){
alert("Please enter info in the text box");
f.focus();
}
}
</script>
Call the setfoc() on blur of the checkbox which will automatically set focus to the textbox, and then onblur Fill() to make sure the user entered data.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > If checkbox selected then textfield can't be empty


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway