Over a million developers have joined DZone.

Set A Field Equal To Something

·
A basic code sample for tcm_write_macros. It sets a custom field to a value

/* also - custom-1, custom-2, custom-3, custom-4, custom-5, etc for custom fields. */
var obj = document.getElementById('custom-3');
obj.value = "VALUE";
Topics:

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}