Ask a Question related to Macromedia Exchange Dreamweaver Extensions, Design and Development.
-
Andy #1
Form Validation - Can this be done?
I have a form with several dropdown menus.
One dropdown menu has two options yes - no
Depending on which option is selected, i want the following 'text' field to
either be greyed out (if 'no' is selected) or editable (if 'yes' is
selected).
Can this be done and if so, how?
Thanks
Andy
Andy Guest
-
CFFORM Validation trumping Custom Form Validation
Is there any way for custom form validation to work in concert with the cfform validation? I have a custom script that compares the values of two... -
Form Validation
Hi all, I am using form validation to authenticate users. In the web config file I secure a page that has only the following statement:... -
form validation in asp.net
I want to verify that a email has been entered in a simple asp.net form that is being sent as an email. I found the RequiredFieldValidator Tag is... -
copy and paste form RTF document into field in asp form cause it to bypass field length and javascript validation - how to overcome?
I have a web form with several fields. If I copy & paste from a RTF document into a field, the javascript validation and field length are bypassed... -
get rid of form validation
I added form validation in MX and then deleted some form fields, so needed to change the validation behavior. I deleted the On blur from the... -
Paul Davis #2
Re: Form Validation - Can this be done?
Yes it can, on the select form field, add:
onChange="document.getElementById('field1').disabl ed=(this.selectedIndex==0)?'':'disabled'"
Now, this will disable the field and any text in it becomes gray, and,
depending on the browser, some borders become gray - to take it further
you would need to assign some CSS changes as well (which is a little
more complex)
Paul Davis
[url]http://www.kaosweaver.com/[/url]
Visit us for dozens of useful Dreamweaver Extensions.
[url]http://www.communitymx.com/[/url]
Partner at Community MX - Extend your knowledge
Andy wrote:> I have a form with several dropdown menus.
> One dropdown menu has two options yes - no
> Depending on which option is selected, i want the following 'text' field to
> either be greyed out (if 'no' is selected) or editable (if 'yes' is
> selected).
> Can this be done and if so, how?
>
> Thanks
> Andy
>
>Paul Davis Guest
-
Andy #3
Re: Form Validation - Can this be done?
Excellent Paul, I will try it - Thank you very much
Andy
"Paul Davis" <kaosNOweaver@kaosSPAMweaver.com> wrote in message
news:ftijsu$qq$1@forums.macromedia.com...> Yes it can, on the select form field, add:
>
> onChange="document.getElementById('field1').disabl ed=(this.selectedIndex==0)?'':'disabled'"
>
> Now, this will disable the field and any text in it becomes gray, and,
> depending on the browser, some borders become gray - to take it further
> you would need to assign some CSS changes as well (which is a little more
> complex)
>
> Paul Davis
> [url]http://www.kaosweaver.com/[/url]
> Visit us for dozens of useful Dreamweaver Extensions.
>
> [url]http://www.communitymx.com/[/url]
> Partner at Community MX - Extend your knowledge
>
> Andy wrote:>> I have a form with several dropdown menus.
>> One dropdown menu has two options yes - no
>> Depending on which option is selected, i want the following 'text' field
>> to either be greyed out (if 'no' is selected) or editable (if 'yes' is
>> selected).
>> Can this be done and if so, how?
>>
>> Thanks
>> Andy
>>Andy Guest
-
aja183 #4
Re: Form Validation - Can this be done?
question and help needed I purchased cs3 this morning because need to be able
to do more and great excuse to upgade but that aside would spy be the best to
use to validate drop down menu we have validated all other fields with beviuors
but not showing drop down as a feild to modify so in you oppinions would spry
be best and were would i find the steps I have read lots of information and
search out even more however still no luck with this what advice do you
have.... Again many thanks in advance as I beleave you all have the knowladge
and skill to send me in the right direction
aja183 Guest
-
aja183 #5
Re: Form Validation - Can this be done?
Hi all
wondering if anyone is awake
sorry just we are in oz so i expect the time dif is my chalange however if anyone in on maybe they could say hi...... or in my case Giday
aja183 Guest
-
Brian Wright_ #6
Re: Form Validation - Can this be done?
Yes, you can have the color change when you clikc the required button in the validation form.
Brian Wright_ Guest
-
Andy #7
Re: Form Validation - Can this be done?
Hi Paul
Just tried your code and it does disable the text box no matter what was
selected from the previous dropdown.
How do i get the code to only disable the text box if the dropdown has a
particular vaue? i.e. "no"
it would also be great if you could point me in the right direction
regarding the use of css to grey the text box out.
Much Appreciated.
Andy
"Paul Davis" <kaosNOweaver@kaosSPAMweaver.com> wrote in message
news:ftijsu$qq$1@forums.macromedia.com...> Yes it can, on the select form field, add:
>
> onChange="document.getElementById('field1').disabl ed=(this.selectedIndex==0)?'':'disabled'"
>
> Now, this will disable the field and any text in it becomes gray, and,
> depending on the browser, some borders become gray - to take it further
> you would need to assign some CSS changes as well (which is a little more
> complex)
>
> Paul Davis
> [url]http://www.kaosweaver.com/[/url]
> Visit us for dozens of useful Dreamweaver Extensions.
>
> [url]http://www.communitymx.com/[/url]
> Partner at Community MX - Extend your knowledge
>
> Andy wrote:>> I have a form with several dropdown menus.
>> One dropdown menu has two options yes - no
>> Depending on which option is selected, i want the following 'text' field
>> to either be greyed out (if 'no' is selected) or editable (if 'yes' is
>> selected).
>> Can this be done and if so, how?
>>
>> Thanks
>> Andy
>>Andy Guest



Reply With Quote

