Conceptually,

do first part of form

if (condition)
[% INCLUDE second part of form ]
endif


***
Are you doing this in TT or in perl that calls TT


Respectfully,

Sherwood of Sherwood's Forests

Sherwood Botsford
Sherwood's Forests --  http://Sherwoods-Forests.com
780-848-2548
50042 Range Rd 31
Warburg, Alberta T0C 2T0


On 26 February 2016 at 11:31, Norris, Joseph <jnor...@pacificmetrics.com>
wrote:

> Hello all,
>
>
>
> Did quite a bit of work with TT some years ago – just coming into a
> project where it will be ideal.
>
>
>
> Here is my issue:
>
>
>
> I am converting a bunch of html embedded scripts into TT based scripts and
> I have a situation where ( for lack of better words ) I must “append” parts
> of forms to other parts – so I have a the following mockup
>
>
>
>
>
> first_part_of_form
>
>    on condtion – keep first_part_of_form and append
>
>         second_part_of_form
>
>
>
>
>
> I have tried setting if conditions in my perl script and do the process to
> a variable but when I do the following:
>
>
>
> $form->{set_first_part} = true
>
>   and then in the form I have [% IF set_first_part == ‘true’ %]
>
>
>                                   first_part_of_form
>
>                                                           [% END %]
>
>
>
> And then set it to false – as expected I do not get the first_part_of_form
> -  I need to keep this intact and then append second_part_of_form
>
>
>
> Maybe I am over-thinking this but I would like to get to as close as I can
> to a single html file to handle what I am doing.
>
>
>
> I would appreciate any suggestion of how I might go about this – maybe
> there is something in TT that I have not even considered
>
>
>
> Thanks for your help.
>
>
>
>
>
>
>
> *Joseph Norris  *[image: social-icons_green-linkedin.png]
> <https://www.linkedin.com/company/pacific-metrics> [image:
> social-icons_green-twitter.png] <https://twitter.com/PacificMetrics>
>
>  Software Applications Engineer
>
> *PACIFIC METRICS*
>
> 1 Lower Ragsdale Dr #150 *| *Monterey, CA 93940
>
> *T* *623-203-8866*
>
> *E* jnor...@pacificmetrics.com  *| W* www.pacificmetrics.com
>
> *[image: email-sig-logo.jpg]*
>
>
>
> _______________________________________________
> templates mailing list
> templates@template-toolkit.org
> http://mail.template-toolkit.org/mailman/listinfo/templates
>
>
_______________________________________________
templates mailing list
templates@template-toolkit.org
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to