Username Password
Bookmark and Share

Form Parameter Macro

This macro is mainly used in populating forms with data the user previously submitted so they don't have to retype it. Using this macro, you can pull the value of any form field simply by specifying the name of the form field, like this: ^FormParam(phone);


<input type="text" name="phone" value="^FormParam(phone);" />


If the macro is used to pull data from a form field that returns multiple values, like a dropdown list, then only the first value will be returned.

This Macro may be nested inside other Macros if the text returned does not contain commas or quotes. This macro can also handle form parameters from both GET and POST requests. 

A common misconception is that this macro should be used in SQL Reports. SQL Reports have their own form processing subsystem which is both faster and safer than ^FormParam();. 

Keywords: macro

Search | Most Popular | Recent Changes | Wiki Home
© 2022 Plain Black Corporation | All Rights Reserved