Hi All
I want to create a link in my footer that says 'report a problem' and this would link to a form.
Is there a way that I can automatically know what page the end user was on when they clicked the link?
Eg could there be a field on the form that is pre-filled with the referring page URL?
Thanks
Tim
If your Matrix runs on its own cache, use 'tell a friend' to get the referral URL. If Matrix runs with the proxy in front, use a hidden question (text type) and get the URL from the 'get' keyword. Let me know if you need more details. 
Us a paint layout with a nested custom from. Then you can use the normal asset keywords in the form for that page. Here is how we do it:
http://www.puc.edu/news/archives/2011/tammy-mcguire-named-educator-of-the-year
http://www.puc.edu/news/archives/2011/tammy-mcguire-named-educator-of-the-year?SQ_PAINT_LAYOUT_NAME=email
Those are the same page, but one is told to use a paint layout with a nested form.
[quote]
Us a paint layout with a nested custom from. Then you can use the normal asset keywords in the form for that page. Here is how we do it:
http://www.puc.edu/news/archives/2011/tammy-mcguire-named-educator-of-the-year
http://www.puc.edu/news/archives/2011/tammy-mcguire-named-educator-of-the-year?SQ_PAINT_LAYOUT_NAME=email
Those are the same page, but one is told to use a paint layout with a nested form.
[/quote]
Hi Nic, how do you tell a page to use a paint layout by clicking on an 'email this page' link? I have set up a paint layout called 'email' with a nested form, and then in the design file have <a href="?SQ_PAINT_LAYOUT_NAME=email">Email this page</a></p>, but this is not doing anything on the frontend, so I'm missing something.
[quote]
Hi Nic, how do you tell a page to use a paint layout by clicking on an 'email this page' link? I have set up a paint layout called 'email' with a nested form, and then in the design file have <a href="?SQ_PAINT_LAYOUT_NAME=email">Email this page</a></p>, but this is not doing anything on the frontend, so I'm missing something.
[/quote]
Is this a user specified paint layout? Have you actually applied the paint layout to the pages?
If you apply the paint layout to the page then the page renders with the custom form up front, no? So I guess what I'm after is, as you've asked, a user specified paint layout, so that when the user clicks on the send "report this page" link or what ever the link is called then the paint layout is applied, but how is that done?
[quote]
Is this a user specified paint layout? Have you actually applied the paint layout to the pages?
[/quote]
[quote]
If you apply the paint layout to the page then the page renders with the custom form up front, no? So I guess what I'm after is, as you've asked, a user specified paint layout, so that when the user clicks on the send "report this page" link or what ever the link is called then the paint layout is applied, but how is that done?
[/quote]
You need to create a User Defined Paint layout and give it a Layout Code:
Normal page: http://www.puc.edu/academics/departments/biology/home
User Defined Layout page: http://www.puc.edu/academics/departments/biology/home?SQ_DESIGN_NAME=contact
That is the same page, just specifying the paint layout, which paints a Custom Form instead of the Home contents.
thanks Nic, works really well.
[quote]
You need to create a User Defined Paint layout and give it a Layout Code:
Normal page: http://www.puc.edu/academics/departments/biology/home
User Defined Layout page: http://www.puc.edu/academics/departments/biology/home?SQ_DESIGN_NAME=contact
That is the same page, just specifying the paint layout, which paints a Custom Form instead of the Home contents.
[/quote]
[quote]
thanks Nic, works really well.
[/quote]
Glad to help. 