AutoAdd Element (Data)
The "autoadd" Element
There will likely be situations where you want to pre-select the contents of a chooser or pre-populate items into a table for the user. However, you also want the user to able to delete or replace these items. This is one of the various mechanisms for automatically adding picks to actors and it can be utilized via the "autoadd" element. The complete list of attributes for this element is below.
thing Id – Specifies the unique id of the thing that is to be automatically added to the container. portal Id – Specifies the unique id of the portal into which the thing is to be added.
The following example demonstrates what an "autoadd" element might look like. All default values are assumed for optional attributes.
<autoadd thing="journal" portal="journal"/>