I'm using entity reference prepopulate and views. On the start of my node add form I'm using views to display some products and I have created a PHP button to pass the nid of those products to the URL. Here is the code:
<?php $url = token_replace('[current-page:url]'); $l = l( t('SELECT THIS VENUE'), $url, array('query' => array('field_product_venue' =>$row->nid ) )); echo $l; ?>
And on the last part of my node add form the user can see the summary of all the products he or she has chosen but he or she must also have the ability to remove those items, since the form gets its selected products from the url I want to create a button that deletes that specific product (nid) from the URL.
Any help would be greatly appreciated.