create new tag
, view all tags

Feature Proposal: Add encode and newline Parameters to FORMFIELD


When you feed a FORMFIELD into an HTML input field it needs to be html encoded. Although it is possible to enclose a FORMFIELD into an ENCODE, it will miss corner cases such as when the returned form field value contains quotes.

Description and Documentation

Add new encode="" parameter to FORMFIELD, same as type="" parameter in ENCODE, and encode="" parameter in URLPARAM.

Add also a newline="" parameter to FORMFIELD, same as newline="" parameter in URLPARAM.


<input type="text" name="LastName" value="%FORMFIELD{ "LastName" encode="html" }%" size="30" />



-- Contributors: PeterThoeny - 2010-12-12


This feature is now accepted after 7 days grace period.

-- PeterThoeny - 2010-12-20

This is now in SVN trunk. I added also a newline parameter, in line with VarURLPARAM.

-- PeterThoeny - 2010-12-21

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2010-12-21 - PeterThoeny
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.