Menu

Action Form Notes

Action Form is a module developed by DNNSharp.com for the DNN Content Management System and Development Platform. The developers at LetItShine.biz have used the Action Form module for countless projects and solutions for a number of years. The following is an modest collection of notes that we have started to record about techniques to take advantage of the strengths of this module. We record this here not to become a secondary help system for Action Form users or DNNSharp. But if you can find something here that helps you, that makes us happy too.

Return to the list

Action Form

Standard Tokens in Action Form

Mark Buelsing 0 17 Article rating: No rating
  • Utility Tokens
    • [_ReportKey] - unique ID that identifies the current submission. This also powers edit functionality in Action Form. Whenever a entry parameter is present in query string, Action Form tries to match the associated report entry and load it into the form.
    • [_Referrer] - holds the URL from which the user arrived to the form
    • [_UserIp] - holds the IP of the user
    • [_FormUrl] - the URL where the form lives
    • [_FormUrlRelative] - same as above, only it’s a relative URL
    • [_EditUrl] - is the URL to edit current submission at a later time
    • [_IsNew] - true when the form is submitted for the first time
    • [_IsEdit]- true when the form is edited (for example using the [_EditUrl] token or Action Grid).

QueryString parameters with Default Values

Mark Buelsing 0 20 Article rating: No rating

You can use [$id] instead of [QueryString:id], for example in a grid’s data source you can set as statement:

select * from Users where UserID=[$ID=1] 

If I access a page with no id in query string, then the -1 id will be taken as default and no value will be returned because there is no user with -1 id.

* I have seen it written that MyTokens was necessary in order to use this notation, however it worked for me without MyTokens.

Send more columns of data through the Multiple Choice Dropdown

Action Form. Pack more data into your Multiple Choice Dropdown, unpack it when an option is chosen

Mark Buelsing 0 406 Article rating: No rating

The multiple choice field has the value and the label. That's two columns of data on each row. When you really need more than two columns for each row, you can have it with some creative SQL and Javascript.

RSS
12