A project needs something like the Comments module, but will need quite a few more fields, so we will be using a web app instead.
The comments will apply to one of many thousands of web app items (different web app), and the user will already be viewing the relevant web app item when they add their comment.
How can I pre-fill the data source field of the comment web app item to be the web app item that the user is currently visiting?
Hi Frisco,
Here's how you could do it:
Let's assume that the two web apps are: 1- Hotels 2- Comments
The first thing to do would be to give the comments web app a data source of Hotels.
Next, use {module_url} on all links leading to the web app detail view.
Lastly, adjust the form's data source select tag then simply call the {module_url,*********} as the option value and the web app name as the option just like demo-ed below;
<select name="" id="" class="cat_dropdown">
<option value="{module_url,*********}" selected>{tag_name}</option>
</select>
Be sure to read up on the {module_url} via http://kb.worldsecuresystems.com/145/bc_1455.html?bc-partner
Good luck
Dave Black
@webmosphere
www.webmosphere.co.uk
North America
Europe, Middle East and Africa
Asia Pacific