[FX.php List] Required Fields when using value lists.

Tim 'Webko' Booth tim at nicheit.com.au
Mon Oct 13 16:47:18 MDT 2008


On 13/10/2008, at 11:17 PM, VanBuskirk, Patricia wrote:

> Good morning all!
>
> I have online forms set up using FX/php feeding into a FMP9 dbase.  We
> have several fields on the form that provide a drop-down list from a  
> FM
> value list.  This process is working fine, but I cannot get those  
> fields
> to "validate" using my javascript (validator.js).
>
> I'm sure there is a better way to require fields, but am not sure how
> and am hoping someone on the list may already have done it.

In general, most of the validators are checking for the emptiness of a  
field, so I've found that manually adding an empty option before the  
FM generated VL helps:

<select name="dropdown">
	<option></option>
<?php etc ?>
</select>

Cheers

Webko




More information about the FX.php_List mailing list