I am writing a form that takes zip code input. Javascript code determines city & state based on zip code. I would like the city and state to appear on a 'results' page that is displayed when the user completes the form. I can only get Template Toolkit to display the form input params on the result page. Is there a way to get the city and state to appear?

有帮助吗?

解决方案

As @isherwood notes, without more detail it's hard to say.

But I would suspect you might want to have whatever does your Javascript city/state decoding push their results into some hidden or uneditable form fields, so they make the round-trip to your server and are available for the next round of TT rendering.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top