questions about widget forms and conditionals

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

questions about widget forms and conditionals

jonwimp
Is it advisable to add "<condition>" blocks in widget forms? It gets really tiring when using
"use-when".

Or should I simply dump widget forms and move to Freemarker?

Or is it too messy to riddle a form with conditionals, and is it better to simply create 2
separate forms, one for "create" and one for "update"?

Jonathon
Reply | Threaded
Open this post in threaded view
|

Re: questions about widget forms and conditionals

Daniel Martínez-4
Hi Jonathon,

I have used conditional forms in order to reuse them for create/update
and I am happy with the results in terms of maintenance. I think the
messy part is always with the <use-when> parts. If your update/create
forms are very similar I would advice to use one conditional form. If
they are very different use two forms.

Freemarker templates are more difficult to maintain in the long run.

--
Daniel

Jonathon -- Improov escribió:

> Is it advisable to add "<condition>" blocks in widget forms? It gets
> really tiring when using "use-when".
>
> Or should I simply dump widget forms and move to Freemarker?
>
> Or is it too messy to riddle a form with conditionals, and is it
> better to simply create 2 separate forms, one for "create" and one for
> "update"?
>
> Jonathon