With webform I created a form with several pairs of components that belong to eachother. For example, a component "name" of type text field and a component "name" of type markup. The intention is that the submission of the text field will displayed in the Markup field.
Using Roles will be provided for the user which textareas should fill out and what markup fields he or she sees. In this way I want different users (students in this case) to communicate with a single user (a teacher). The text submitted by a student in a textarea will then be showed as read-only text for the teacher.
With the help of the unsurpassed Johan Falk, http://vimeo.com/18701843, can I get data from web form submission data into Views. By using the submission id (sid) on contextual filters I can select the submission of a specific student and display it. In the preview in Views this works fine.
Using contextual filters can I use with the submission ID of the input of a user (student) select. In the preview Views this works fine. Then I import the block into the markup field with the following php code:
<? php
$ block = module_invoke ('views', 'block_view', 'block_delta');
print render ($ block ['content']);
?>
Here begins my question!
The above print render ($ block ['content']);
the block appears as a survey of the submissions of all users (students). However, I want use a url parameter to display a single submission of a specific user as in the preview in Views mentioned above. I have searched for a way to add a filter to this php code above but cant find a solution.
Does anyone have an idea how to tackle it? Thanks in advance.