Re: Dynamic form fields

Nathan Quirynen <[email protected]>
Newsgroups gmane.comp.java.tapestry.user
Organization Pension Architects
Message-ID <[email protected]>
Thanks,

This works perfect for my use case :)
Also when I want to trigger it by something else than a checkbox, for 
example a change in a select, I can probably add a hidden checkbox that 
I can check with javascript to toggle the FormFragment.

Greetings,

Nathan


Op 14/12/2017 om 14:16 schreef Bob Harner:
> Nathan,
>
> Have you tried the FormFragment component?
>
> See
> https://tapestry.apache.org/5.4/apidocs/org/apache/tapestry5/corelib/components/FormFragment.html
>
>
> On Dec 14, 2017 5:47 AM, "Nathan Quirynen" <[email protected]>
> wrote:
>
> Hi,
>
> This subject has been spoken about more in the past, but I still have not
> found a good solution to this and still struggle with this.
>
> What is the best practice (Tapestry 5.4+) to add fields to a form
> "dynamically". In my use case I just want to add some fields to a form when
> a checkbox (also part of the same form) is selected, or remove/hide them
> (in a way that they will not be validated and posted) when the checkbox is
> deselected.
>
> How do you guys handle these use cases with forms?
>
> Nathan
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.