[TYPO3-project-formidable] Lisbox and default value in edition : A solution?

Jerome Schneider typo3dev at ameos.com
Thu May 15 20:13:28 CEST 2008


Hi Sanosuke,

If I understand well, you want to override the data that the framework 
loads from the database, when in edition mode.

You'll have to use /data/value on the renderlet, instead of 
/data/defaultvalue

like this:

<renderlet:LISTBOX name="mylist" label="The listbox">
	<data value="two">
		<items>
			<item caption="The first" value="one" />
			<item caption="The first" value="two" />
			<item caption="The first" value="three" />
		</items>
	</data>
</renderlet:LISTBOX>


note the <data value="two"> instead of <data defaultValue="two">

Hope this answers
Jerome

Sanosuke303 wrote:
> Hi list,
> 
> I use formidable and I'm trying to use the edition
> mode.
> 
> So, I have a listbox that allow user to choose a value. But
> when I try to show the database value with the "default
> value", it does'nt work.
> 
> I have read in the documentation that it is not allowed :
> "If set, it will be used only when the form has not
> been already submitted ( first display ) and when in
> creationmode ( not edition mode)"
> 
> How can I show a listbox in edition mode with the good
> value selected?
> 
> Regards.
> 
> PS: I'm sorry but my english is not good enought
> 
> __________________________________________________
> Do You Yahoo!?
> En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicités 
> http://mail.yahoo.fr Yahoo! Mail 


More information about the TYPO3-project-formidable mailing list