DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Set A Field Equal To Something

  • submit to reddit
        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";