Feature Proposal: Add encode and newline Parameters to FORMFIELD
Motivation
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.
Examples
<form>
<input type="text" name="LastName" value="%FORMFIELD{ "LastName" encode="html" }%" size="30" />
</form>
Impact
Implementation
--
Contributors: PeterThoeny - 2010-12-12
Discussion
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