Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Set A Field Equal To Something

DZone's Guide to

Set A Field Equal To Something

·
Free Resource
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:

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

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

{{ parent.tldr }}

{{ parent.urlSource.name }}