LegacyForm Macro
Syntax
Smartsite SXML | Copy Code |
---|---|
<se:legacyform> <se:parameters> <se:parameter name="formid"> </se:parameter> </se:parameters> </se:legacyform> |
Parameters
Name | Data Type | Properties | Description |
---|---|---|---|
formid | string | IsRequired | Code or number of the Smartsite item that contains the form to be rendered. |
action | string | URL to which the form will be posted. | |
forcesubmit | boolean | If no submit button is implied by the form definition, one will be added. | |
showformonloaderror | boolean | Empty form is shown when load record fails. | |
showformonsaveerror | boolean | The filled out form is shown when posting fails. | |
allowanonymousaccess | boolean | Impersonate given user for Forms bound to ContentType. | |
formdata | string | Semi-colon separated key=value pairs. | |
loadrecord | integer | Key of the record to be loaded into a data bound form. | |
loadrecorderror | string | HTML Text that will be displayed when the forms engine is unable to load the specified record. | |
readonly | boolean | Display a record without allowing the user to edit it. | |
redirect | locator | Link to a page that will be displayed after the form is posted. | |
feedbackmessage | string | HTML Text that will be displayed to the user after the form is posted. | |
cancel | string | HTML Text that will be displayed to the user after the form is cancelled. | |
showformafterpost | boolean | Form is shown again after successful post. | |
checkpostedformid | boolean | Macro will only handle posting of its own form. | |
startworkflow | string | ID of the workflow to be started after the data has been posted (optional). | |
workflowparams | string | Semicolon separated list of workflow parameters (optional). | |
tableheight | string | Height of the container table. Leave empty for auto-sizing. | |
tablewidth | string | Width of the container table. Leave empty for auto-sizing. | |
globalcaptionclass | string | All cells containing a caption will be set to this class. | |
globalcaptionparenttag | string | All cells containing a caption will use this tag. | |
formclass | string | Classname for the form element. | |
css | locator | URL to a style sheet to be included. | |
noautostyles | boolean | Do not add any default style attributes. | |
headermode | string | Sets the http header handling mode for the embedded request/response. |
Remarks
The LegacyForm configuration macro wraps an EmbedUri macro that points directly to the desired form item, passing all parameters as query string parameters. This means that the Form content type should now be rendered directly on the legacy (MGR) channel using a specific render template that reads the query string and passes the relevant parameters on to the SixForms.PageForm macro. The render template is described here.
-
Macro
- AIM Macro
- AIMScan Macro
- Application Macro
- Binary Macro
- Buffer Macro
- Cache Macro
- CacheFile Macro
- Calendar Macro
- Chart Macro
- CmsUpdate Macro
- Code Macro
- DigiDLogin Macro
- Dir Macro
- DoWhile Macro
- Embed Macro
- EmbedPreview Macro
- EmbedUri Macro
- Expression Macro
- FacetedSearchPrepareInputData Macro
- FacetedSearchPrepareInputData20 Macro
- FacetedSearchQueryBuilder Macro
- FacetedSearchQueryBuilder20 Macro
- FeedReader Macro
- Filter Macro
- FilterByHierarchy Macro
- For Macro
- Format Macro
- GoogleWebmasterTools Macro
- Hidden Macro
- HtmlPage Macro
- If Macro
- Image Macro
- ImageFromHtml Macro
- ImageProperties Macro
- Impersonate Macro
- ItemComments Macro
- ItemData Macro
- Join Macro
- Json Macro
- Link Macro
- Locale Macro
- Login Macro
- Lorem Macro
- Metadata Macro
- NoAIM Macro
- PageTranslations Macro
- Paging Macro
- Parents Macro
- Payment Macro
- PdfDocument Macro
- PlaceHolder Macro
- Placeholder.Css Macro
- Placeholder.CssInclude Macro
- Placeholder.Javascript Macro
- Placeholder.JavascriptInclude Macro
- Placeholder.JavascriptOnLoad Macro
- PlaceholderData Macro
- Poll Macro
- References Macro
- Region Macro
- Rem Macro
- Replace Macro
- RSS Macro
- Scf Macro
- ScheduledJob Macro
- SearchEngineSitemap Macro
- SendMail Macro
- SetFileProperties Macro
- ShoppingCart Macro
- Siblings Macro
- SiteMap Macro
- Smartlet Macro
- SmartletBox Macro
- SmartletEditor Macro
- SmartletNoScript Macro
- SmartletPreset Macro
- SmiData Macro
- Sort Macro
- SqlQuery Macro
- StandardsCompliance Macro
- Statistics Macro
- Switch Macro
- SyncFileLinks Macro
- Tags Macro
- Text Macro
- Transform Macro
- TranslationContext Macro
- ViewHierarchy Macro
- ViewSource Macro
- WebAPI Macro
- Webservice Macro
- While Macro
- XHtmlPage Macro
- XLinks Macro
- XmlDataTable Macro
- XmlProcessor Macro
- Macro Parameters
- Macro Parameter Properties
- Vipers
- SXML Data Types
- Examples
- Tips & Tricks