[TYPO3-project-formidable] Formidable questions
Mack Sol
macksol at live.fr
Thu Aug 21 22:58:52 CEST 2008
Hello everybody,
I finally find how to do :)
Here's one solution of the problem:
<renderlet:PASSWORD name="password" label="password">
<validators>
<validator:STANDARD>
<required message="password required" />
</validator:STANDARD>
</validators>
</renderlet:PASSWORD>
<renderlet:PASSWORD name="passwordConf" label="Password confirmation">
<renderonly>true</renderonly>
<validators>
<validator:STANDARD>
<required message="password confirmation required" />
<sameas value="password" message="passwords are different" />
</validator:STANDARD>
<onload runat="client">
<userobj>
<php>
<![CDATA[
if (!isset($_SESSION["pass"])){
$iPassConfValue = $this->oDataHandler->_getThisFormData("password");
$_SESSION["pass"] = "ok";
return array($this->aORenderlets['passwordConf']->majixReplaceData($iPassConfValue));
}
]]>
</php>
</userobj>
</onload>
</renderlet:PASSWORD>
And the last thing is the button close:
<renderlet:SUBMIT name="btn-close" label="Fermer" mode="clear">
<onclick runat="server" cached="true">
<userobj>
<php>
<![CDATA[
unset($_SESSION["passFirst"]);
]]>
</php>
</userobj>
</onclick>
</renderlet:SUBMIT>
Now it works very well !!
I hope this can help someone else.
Best regards
> From: macksol at live.fr
> To: typo3-project-formidable at lists.netfielders.de
> Date: Thu, 14 Aug 2008 18:13:46 +0200
> Subject: Re: [TYPO3-project-formidable] Formidable questions
>
>
> Hey Jerome, Hey All,
>
> Thanks for your reply.I think my question wasn't
> clear because your code it's what I have already done :) The only thing
> which is not the same is the <editentry>11</editentry>.
> What's this ?
>
>
> Example of what I want to do:
> I have a form with 3 fields: username, password, password confirmation.
> In the edit creation : All the field are empty.
> In
> the edit case : All the fields are completed even the field password
> confirmation. I want that the field password confirmation takes the
> value of the password field. In this way it's not necessary for the
> user to fill the password confirmation if he don't want to change it.
>
>
> By the way I hope you have spent good holidays :)
>
> Regards
>
> Mack
>
> > From: typo3dev at ameos.com
> > Date: Tue, 12 Aug 2008 17:31:26 +0200
> > To: typo3-project-formidable at lists.netfielders.de
> > Subject: Re: [TYPO3-project-formidable] Formidable questions
> >
> > Hi Mack Sol,
> >
> > I illustrated the solution with this snippet:
> >
> > http://formidable.typo3.ug/pastebin/snippet/50.html
> >
> > I think this is what you need.
> >
> > Regards,
> > Jerome Schneider
> > _______________________________________________
> > TYPO3-project-formidable mailing list
> > TYPO3-project-formidable at lists.netfielders.de
> > http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-formidable
>
> _________________________________________________________________
> Votre correspondant a choisi Hotmail, un e-mail ultra sécurisé. Créez le votre gratuitement !
> http://www.windowslive.fr/hotmail/default.asp
> _______________________________________________
> TYPO3-project-formidable mailing list
> TYPO3-project-formidable at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-formidable
_________________________________________________________________
Retouchez, classez et partagez vos photos gratuitement avec le logiciel Galerie de Photos !
http://www.windowslive.fr/galerie/
More information about the TYPO3-project-formidable
mailing list