I’m trying to set up my entry publish forms, on the front end with Safecracker, so that users can relate entries from one channel to an entry in another - this is pretty simple…
However, I need to limit the available entries in the relationship dropdown to only those the user has created.
I’ve found this post http://ellislab.com/forums/viewthread/123776/ which does almost exactly what i want but I can’t get it to work in safecracker.
Unfortunately this standard dropdown code doesn’t work for a relationship field in Safecracker:
<label>Parent campaign:</label>
<select name="asset_parent" id="asset_parent">
{options:asset_parent}
<option value="{option_value}"{selected}>{option_name}</option>
{/options:asset_parent}
</select>
You have to use this instead:
<label>Parent campaign:</label>
{field:asset_parent}Rob at Barrett Newton suggested doing some sort of custom SQL query to achieve what i’m trying to do and suggested I ask in these forums to see if anyone could help..
Here’s our convo: http://barrettnewton.com/forums/viewthread/1389/
Any one got any ideas??