Difference between revisions of "Passing Values Using Parameters"
(→Passing Parameters to the Link) |
|||
Line 18: | Line 18: | ||
In either case the link can be web [[URL]] or local '''UNC''' type link. | In either case the link can be web [[URL]] or local '''UNC''' type link. | ||
− | ==Passing Parameters | + | ==Passing Parameters Through a Link== |
− | You can pass parameters to | + | You can pass values using parameters to another page which has form fields to be pre-populated. For [[URL]] type links the following syntax would be used: |
Revision as of 15:10, 7 October 2009
You can create links using several techniques:
In the context of a portal interface by using a link:
- Create a Portal shortcut and associate the link with that shortcut.
In the context of a specific application by using a custom field:
- Create a Custom Field of the type Display Only – Text or System Object. Add the link to that field.
- Create a Custom Field of the type Read Only - System Variables with the following. It will display as a button.
<input type="button" class=Button value="Button Label" onClick='parent.location.href="/urltopage?variable=@variable@"'/>
In either case the link can be web URL or local UNC type link.
Passing Parameters Through a Link
You can pass values using parameters to another page which has form fields to be pre-populated. For URL type links the following syntax would be used:
urltopage?Firstname=@firstname@&lastname=@lastname@&email=@email@&address=@address@&address2=@address2@&phone=@phone@&extension=@uphoneext@
&city=@city@&province=@province@&postal=@postalcode@&homephone=@home phone@&companyname=@company name@&employeeid=@employee id@
SmartSimple will replace the variable references (@lastname@ etc) with values derived from the current user session.