Using 'Set Tag' trigger with Asset Builder Page

Hi,


I want to set up a 'Set Tag' trigger which fires on 'asset creation' for News Item assets within an Asset Builder Page, assigning a thesaurus term to the newly created page via a HTML form checkbox.



I have nested an asset listing page into the Asset Builder, which displays list of checkboxes and uses the POST method, like so:



<form method="POST">

<input type="checkbox" name="newtag[]" value="%asset_assetid%" />%asset_name%



Then for the trigger, I have used 'new mapping' to assign 'newtag' variable to Tag ID, however this isn't passing the user selected value to the asset tag.



Any help on how to get this working would be very appreciated.



Thanks.

[quote]
Any help on how to get this working would be very appreciated.

[/quote]



Which body copy are you trying to do this in?



If you are trying to do this on the Logged In body copy, where the create form is, this isn't going to work. You will have to execute the trigger later.



My advice is to do this on the Created screen, but, you can't put in another form tag, because Matrix already prints a form around the body copy on that screen. So, just use ajax, an Asset Accessed Trigger, and you should be good.