Re: defaultvalues with /QuickForm/Renderer/QuickHtml.php

From: Date: Wed, 20 Sep 2006 18:19:28 +0000
Subject: Re: defaultvalues with /QuickForm/Renderer/QuickHtml.php
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-25186@lists.php.net to get a copy of this message
On 9/20/06, gema <gema@autec.es> wrote:
Hello, I have a page with two forms. The first one has only a select field with defaultvalue, needs no validation and is submited by onchange. It uses HTML/QuickForm/Renderer/QuickHtml.php to render. The defaultvalue is the selected one ok. The second form nedds validation If the second form is submited but doesn´t validate because of the rules I registered, the page is reloaded with the values it is trying to post on the second form ok. But the first form, wich was not submited, doesn´t display its defaultValue !!! Does anybody know how to make the first form show it´s default vales on this case?
Try passing true for the trackSubmit parameter in the constructors. -- Justin Patrin

« previous php.pear.general (#25186) next »