Question
Basic questions
Hello,
I'm quite new using Dreamweaver (DRW for short) and I'm able to set up dumb web pages.
The smart ones are the brick wall.
I have a page with,say, 5 entries.
Entry 1 = Radio button to option 1
Entry 2= Radio button for option 2
Entry 3 = Company Name with xxx characters (Required in both options)
Entry 4 = Phone number (Required only if Radio button (option 1 ) is used
Entry 5 = Email address of the user of the page (Required ONLY if radio button (option 2) is selected
all <form id> for the fields are method=POST.
0. ALL fields are blanks when the page is shown.
1. I have to validate each field for : Radio option set, fields are not left in blank etc.
I'm using the Behavior "onSubmit" + Validate Form. No matter how I do it, I always get 2 "textfield missing" message.
Question: What can cause this ?
2. I need to know which radio button is used. I have no clue how to know which one was selected.
Question: How do I detect a radio button entry?
3. Depending on the Option I have to be sure that the needed fields are filled out.
Ex: Option1 : I have to know if company name is filled out, phone number filled out, email should be blank.
Option 2: no phone number have to be filled out but email is required.
I'm not expecting someone to write me a code in whatever language (all I know is a bit of Javascript), assuming that there is a code to be written.
Bottom Line:
The Validation as defined tells me that I have more fields to fill out than the actual number of them. Why?
How do I cross-check the fields depending on the options?
Do I have to write some code for that matter?
Possibly the information given here is not enough to understand what I really expect to see .
If that's the case, please let me know and I'll try explain better in few lines only.
I'd really appreciate some guidelines to help me.
Thanks
pakoppan
I'm quite new using Dreamweaver (DRW for short) and I'm able to set up dumb web pages.
The smart ones are the brick wall.
I have a page with,say, 5 entries.
Entry 1 = Radio button to option 1
Entry 2= Radio button for option 2
Entry 3 = Company Name with xxx characters (Required in both options)
Entry 4 = Phone number (Required only if Radio button (option 1 ) is used
Entry 5 = Email address of the user of the page (Required ONLY if radio button (option 2) is selected
all <form id> for the fields are method=POST.
0. ALL fields are blanks when the page is shown.
1. I have to validate each field for : Radio option set, fields are not left in blank etc.
I'm using the Behavior "onSubmit" + Validate Form. No matter how I do it, I always get 2 "textfield missing" message.
Question: What can cause this ?
2. I need to know which radio button is used. I have no clue how to know which one was selected.
Question: How do I detect a radio button entry?
3. Depending on the Option I have to be sure that the needed fields are filled out.
Ex: Option1 : I have to know if company name is filled out, phone number filled out, email should be blank.
Option 2: no phone number have to be filled out but email is required.
I'm not expecting someone to write me a code in whatever language (all I know is a bit of Javascript), assuming that there is a code to be written.
Bottom Line:
The Validation as defined tells me that I have more fields to fill out than the actual number of them. Why?
How do I cross-check the fields depending on the options?
Do I have to write some code for that matter?
Possibly the information given here is not enough to understand what I really expect to see .
If that's the case, please let me know and I'll try explain better in few lines only.
I'd really appreciate some guidelines to help me.
Thanks
pakoppan
