Submission Form Drop-Down Required

J

Jason

Hi,

I successfully built a submission form using the DIW in
FP 2003. Some of my fields though are drop-down's. My
question is how can I make the drop-down's required
fields while still including a null in a drop-down?

I adjsuted the code in the drop-down section to include a
null field. The code looks like this:

<asp:ListItem Value="" />
<asp:ListItem Value="Test" />
<asp:ListItem Value="Non-Test" />

Thanks.
 
J

Jens Peter Karlsen [FP MVP]

Set the default to something unused such as "Please select one". Then
when submitting check that the current selected value is different
from this text.

Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.
 
J

Jason

Thanks Jens for the reply.

So what you are saying is to remove the line
<asp:ListItem Value="" /> and replace the "" with
Please..... I follow that. I do not follow how I can
check to see that the value is different when
submitting. Is there specific code I need to write or
does FP do that for me?

Thanks.

Jason
 
J

Jens Peter Karlsen [FP MVP]

In properties for the dropdown, choose Validate and check Disallow
first item.
This requires the FP Extensions.
If your server doesn't have these you must write the necessary
JavaScript yourself.

Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.
 
J

Jason

Jens,

While using the DIW you don't get the properties that
allow you to select disallow first item, unless I just
don't see it. I do have FP Extensions loaded.

Thanks again for your help. Hopefully there is an answer.

Jason
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top