[ic] Form field checking.... almost got it

Ed LaFrance interchange-users@icdevgroup.org
Sun Sep 8 12:01:09 2002


At 12:44 AM 9/7/2002 -0400, you wrote:
>IC 4.8.6 using foundation. I have a form and want a few of the fields to 
>be required. I do have this working, but if one of the required fields is 
>left blank and one submits the form, you're presented with a blank form 
>and must re-enter everything. Obviously I'd like the completed fields' 
>contents to be retained.
>
>Here's how my form checks the fields:
>
>[set Check_form]
>&success=feedback2
>&fail=@@MV_PAGE@@
>email=required
>Model=required
>Type=required
>&fatal=1
>test_last=required
>[/set]
>
>Can anyone provide hints?

Your need to feed the last known value to your inputs, i.e.:

<input type=text name=email value="[value email]">

<select name=Model>
<option value="A" [selected Model A]> A
<option value="B" [selected Model B]> B
</select>

<input type=radio name=Type value=standard [checked Type standard]> Standard
<input type=radio name=Type value=automatic [checked Type automatic]> Automatic

...and so forth.

- Ed L.


===============================================================
Increase profits from your Interchange store...
http://www.newmediaems.com/cgi-bin/nm/software_fus.html
===============================================================
New Media E.M.S.               Software Solutions for Business
463 Main St., Suite D          eCommerce | Consulting | Hosting
Placerville, CA  95667         edl@newmediaems.com
(530) 622-9421                 http://www.newmediaems.com
(866) 519-4680 Toll-Free       (530) 622-9426 Fax
===============================================================