Set details to an arbitary value from an Asset Builder

Hi,

 

I've created an asset builder to create data records.  All the important information will be stored in the metadata for this asset, however to be able to create the new asset it needs a name.  The name will never be used other than through the backend, so I don't really care what the name is.

 

I don't want to use the metadata field "title" as it is possible that this value might be used more than once.

 

Can I create a trigger to set the name?  If so how would I do it.

 

Alternatively is there someother way to invisibly set the name - perhaps with datestamp or assetid.

 

Any thoughts or ideas how to achive this.

 

Thanks Georgina.

You will need to use javascript to insert something into the name field.

are you suggesting document.write or #id.append()  to create something like

 

<input type="hidden" name="" value="[javascript to generate text]" >

 

viewing the source code suggests that name="data_record_0_21" might work. 

 

What do the _0_21 values mean?

 

Georgina.

are you suggesting document.write or #id.append()  to create something like

 

<input type="hidden" name="" value="[javascript to generate text]" >

 

viewing the source code suggests that name="data_record_0_21" might work. 

 

What do the _0_21 values mean?

 

Georgina.

 

Yes, exactly. Just some javascript that targets the input and inserts a value on load. Not sure what the 21 means...

Why cannot the title be used as for a field of metadata? For example you have five fields in metadata now you just need four.

I'm expecting that we might end up with several data record assets with the same name if we use the title metadata field to name the asset.  I have a recollection of getting an error creating more than one data record asset in the same folder.

The URL must be unique but title doesn't matter. Matrix automatically add incremental number at the end of URL when it detects the potential conflict.