[TYPO3-project-formidable] Hide/display renderlets on load

Paweł Bandura gawelx at gmail.com
Sun Jul 1 20:30:28 CEST 2007


Paweł Bandura pisze:
> Hi
> 
> I'd like to make something like this:
> The list of records and the form for editin/adding new record above the 
> list. But the form should be hidden on load of the page - there should 
> be displayed only "Add new" button.
> The form should be displayed when:
> *) I click the "Add new" button - and it's simple :],
> *) I click an "Edit" link related to any record on the list - and this 
> is the problem. When I click "Edit" link - the page is reloading, and 
> after that the form is hidden (the box containing the form has default 
> "display: none;" style, so I could use majix functions).
> 
> The same problem apears, when I try to validate fiels - if nay of the 
> fields isn't valid - the page reloads, the error message shows up, but 
> the form is hidden again.
> 
> Is there a way I can make my form to be hidden or not on page loading 
> according to some condition (ie. if $this->oDataHandler->entryId is NULL 
> or not)?

OK, I performed some more precise search on the list archives and I 
found the answer for my question - I've used <xmlbuild> and now 
everything works fine :]

Thanks anyway :]
Paweł Bandura


More information about the TYPO3-project-formidable mailing list